hedgewars/uWorld.pas
changeset 526 e3689572bb15
parent 498 9c8b385dc9a1
child 547 b81a055f2d06
--- a/hedgewars/uWorld.pas	Sat May 26 20:47:36 2007 +0000
+++ b/hedgewars/uWorld.pas	Sun May 27 13:53:41 2007 +0000
@@ -247,8 +247,8 @@
                 tdx:= hwSign(Gear^.dX) * Sin(Gear^.Angle * Pi / cMaxAngle);
                 tdy:= - Cos(Gear^.Angle * Pi / cMaxAngle);
                 for i:= (Gear^.Power * 24) div cPowerDivisor downto 0 do
-                    DrawSprite(sprPower, Gear^.X.Round + system.round(WorldDx + tdx * (24 + i * 2)) - 16,
-                                         Gear^.Y.Round + system.round(WorldDy + tdy * (24 + i * 2)) - 12,
+                    DrawSprite(sprPower, hwRound(Gear^.X) + system.round(WorldDx + tdx * (24 + i * 2)) - 16,
+                                         hwRound(Gear^.Y) + system.round(WorldDy + tdy * (24 + i * 2)) - 12,
                                          i, Surface)
                 end
         end;