hedgewars/VGSHandlers.inc
changeset 3909 4ba25a3d15af
parent 3764 eb91c02f2d84
child 3976 abaf741a4e21
--- a/hedgewars/VGSHandlers.inc	Sun Sep 26 16:28:04 2010 -0400
+++ b/hedgewars/VGSHandlers.inc	Sun Sep 26 19:06:59 2010 -0400
@@ -201,9 +201,13 @@
 ////////////////////////////////////////////////////////////////////////////////
 procedure doStepBubble(Gear: PVisualGear; Steps: Longword);
 begin
-    Gear^.X:= Gear^.X + (cWindSpeedf * 100 + Gear^.dX) * Steps;
+    Gear^.X:= Gear^.X + Gear^.dX * Steps;
+    Gear^.Y:= Gear^.Y + Gear^.dY * Steps;
     Gear^.Y:= Gear^.Y - cDrownSpeedf * Steps;
 
+    Gear^.dX /= (1.001 * Steps);
+    Gear^.dY /= (1.001 * Steps);
+
     if (Gear^.FrameTicks <= Steps) or (round(Gear^.Y) < cWaterLine) then
         DeleteVisualGear(Gear)
     else