hedgewars/HHHandlers.inc
changeset 2238 1a0d26408324
parent 2223 e009fee03c96
child 2262 0dc94341bf42
--- a/hedgewars/HHHandlers.inc	Tue Jul 07 01:57:30 2009 +0000
+++ b/hedgewars/HHHandlers.inc	Tue Jul 07 11:56:02 2009 +0000
@@ -110,7 +110,7 @@
         (((State and gstMoving) = 0) or 
             // Allow attacks while moving on ammo with AltAttack
             ((CurAmmoGear <> nil) and ((CurAmmoGear^.Ammo^.Propz and ammoprop_AltAttack) <> 0)) or 
-            ((Ammo^[CurSlot, CurAmmo].Propz and ammoprop_AltAttack) <> 0)) and
+            ((Ammo^[CurSlot, CurAmmo].Propz and ammoprop_AttackInMove) <> 0)) and
         ((TargetPoint.X <> NoPointX) or ((Ammo^[CurSlot, CurAmmo].Propz and ammoprop_NeedTarget) = 0)) then
         begin
         State:= State or gstAttacking;