Fix for artillery mode weapon use
authornemo
Mon, 17 May 2010 00:48:16 +0000
changeset 3469 39e16d76d745
parent 3468 c7b80bdbc384
child 3470 2b0c88693535
Fix for artillery mode weapon use
hedgewars/HHHandlers.inc
--- a/hedgewars/HHHandlers.inc	Sun May 16 23:43:45 2010 +0000
+++ b/hedgewars/HHHandlers.inc	Mon May 17 00:48:16 2010 +0000
@@ -139,7 +139,7 @@
         xx:= SignAs(AngleSin(Angle), dX);
         yy:= -AngleCos(Angle);
 
-        if ((Gear^.State and gstHHHJump) <> 0) then xx:= - xx;
+        if ((Gear^.State and gstHHHJump) <> 0) and (not cArtillery) then xx:= - xx;
         if Ammo^[CurSlot, CurAmmo].AttackVoice <> sndNone then
            PlaySound(Ammo^[CurSlot, CurAmmo].AttackVoice, CurrentTeam^.voicepack);
              case Ammo^[CurSlot, CurAmmo].AmmoType of