From fd6ae3671397d0fbe1d0b506ba326d32221706a4 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Wed, 13 Oct 2021 08:53:37 +0200 Subject: [PATCH] Stuff --- physobj.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/physobj.rb b/physobj.rb index 829eec7..b42d75a 100644 --- a/physobj.rb +++ b/physobj.rb @@ -33,7 +33,7 @@ class PhysObj end @saved_pos << @pos - while(@saved_pos.length > MAX_PATH_TRACK_POINT) do + if(@saved_pos.length > MAX_PATH_TRACK_POINT) then @saved_pos = @saved_pos[1..-1] end end