hedgewars/GSHandlers.inc
changeset 5151 cbadb9fa52fc
parent 5150 63ad8a648afd
child 5161 72f6eda2f73a
--- a/hedgewars/GSHandlers.inc	Sun Apr 17 11:57:46 2011 -0400
+++ b/hedgewars/GSHandlers.inc	Sun Apr 17 12:48:32 2011 -0400
@@ -176,8 +176,8 @@
                 particle := AddVisualGear(hwRound(Gear^.X) - 3 + Random(6), cWaterLine, vgtDroplet);
                 if particle <> nil then
                     begin
-                    particle^.dX := particle^.dX - (Gear^.dX.QWordValue / 42949672960);
-                    particle^.dY := particle^.dY - (Gear^.dY.QWordValue / 21474836480)
+                    particle^.dX := particle^.dX - hwFloat2Float(Gear^.dX);
+                    particle^.dY := particle^.dY - hwFloat2Float(Gear^.dY)
                     end
                 end
             end;