Don't use operator /=
authorunc0rr
Sun, 07 Nov 2010 19:49:16 +0300
changeset 4172 03fe080d99d6
parent 4171 7bbd7ab84454
child 4175 b970559af8fb
Don't use operator /=
hedgewars/VGSHandlers.inc
--- a/hedgewars/VGSHandlers.inc	Sun Nov 07 19:27:22 2010 +0300
+++ b/hedgewars/VGSHandlers.inc	Sun Nov 07 19:49:16 2010 +0300
@@ -211,8 +211,8 @@
     Gear^.Y:= Gear^.Y + Gear^.dY * Steps;
     Gear^.Y:= Gear^.Y - cDrownSpeedf * Steps;
 
-    Gear^.dX /= (1.001 * Steps);
-    Gear^.dY /= (1.001 * Steps);
+    Gear^.dX := Gear^.dX / (1.001 * Steps);
+    Gear^.dY := Gear^.dY / (1.001 * Steps);
 
     if (Gear^.FrameTicks <= Steps) or (round(Gear^.Y) < cWaterLine) then
         DeleteVisualGear(Gear)