hedgewars/uGearsUtils.pas
changeset 7420 77567b03cc28
parent 7406 1fe2c821f9bf
child 7492 3188794b9d87
--- a/hedgewars/uGearsUtils.pas	Sat Jul 21 17:51:51 2012 -0400
+++ b/hedgewars/uGearsUtils.pas	Tue Jul 24 17:50:42 2012 -0400
@@ -420,10 +420,9 @@
                 Scale:= hwFloat2Float(Gear^.Density / _3 * Gear^.dY);
                 if Scale > 1 then Scale:= power(Scale,0.3333)
                 else Scale:= Scale + ((1-Scale) / 2);
-                if Scale > 1 then Timer:= round(max(Scale,3))
+                if Scale > 1 then Timer:= round(min(Scale*0.0005/cGravityf,4))
                 else Timer:= 1;
                 // Low Gravity
-                Timer:=round(0.0005/cGravityf);
                 FrameTicks:= FrameTicks*Timer;
                 end;