hedgewars/HHHandlers.inc
changeset 519 981df6f6e2a9
parent 518 d48d8c0a546d
child 520 e83dfb7ffead
--- a/hedgewars/HHHandlers.inc	Tue May 22 16:31:59 2007 +0000
+++ b/hedgewars/HHHandlers.inc	Thu May 24 18:48:35 2007 +0000
@@ -48,8 +48,7 @@
            StopSound(sndThrowPowerUp);
            PlaySound(sndThrowRelease, false);
            end;
-        xx:= AngleSin(Angle);
-        xx.isNegative:= dX.isNegative;
+        xx:= SignAs(AngleSin(Angle), dX);
         yy:= -AngleCos(Angle);
              case Ammo^[CurSlot, CurAmmo].AmmoType of
                       amGrenade: FollowGear:= AddGear(hwRound(X), hwRound(Y), gtAmmo_Bomb,    0, xx*Power/cPowerDivisor, yy*Power/cPowerDivisor, Ammo^[CurSlot, CurAmmo].Timer);