hedgewars/HHHandlers.inc
changeset 2238 1a0d26408324
parent 2223 e009fee03c96
child 2262 0dc94341bf42
equal deleted inserted replaced
2237:cf0890ce8ea4 2238:1a0d26408324
   108      if ((State and gstHHDriven) <> 0)and
   108      if ((State and gstHHDriven) <> 0)and
   109         ((State and (gstAttacked or gstHHChooseTarget)) = 0) and
   109         ((State and (gstAttacked or gstHHChooseTarget)) = 0) and
   110         (((State and gstMoving) = 0) or 
   110         (((State and gstMoving) = 0) or 
   111             // Allow attacks while moving on ammo with AltAttack
   111             // Allow attacks while moving on ammo with AltAttack
   112             ((CurAmmoGear <> nil) and ((CurAmmoGear^.Ammo^.Propz and ammoprop_AltAttack) <> 0)) or 
   112             ((CurAmmoGear <> nil) and ((CurAmmoGear^.Ammo^.Propz and ammoprop_AltAttack) <> 0)) or 
   113             ((Ammo^[CurSlot, CurAmmo].Propz and ammoprop_AltAttack) <> 0)) and
   113             ((Ammo^[CurSlot, CurAmmo].Propz and ammoprop_AttackInMove) <> 0)) and
   114         ((TargetPoint.X <> NoPointX) or ((Ammo^[CurSlot, CurAmmo].Propz and ammoprop_NeedTarget) = 0)) then
   114         ((TargetPoint.X <> NoPointX) or ((Ammo^[CurSlot, CurAmmo].Propz and ammoprop_NeedTarget) = 0)) then
   115         begin
   115         begin
   116         State:= State or gstAttacking;
   116         State:= State or gstAttacking;
   117         if Power = cMaxPower then Message:= Message and not gm_Attack
   117         if Power = cMaxPower then Message:= Message and not gm_Attack
   118         else if (Ammo^[CurSlot, CurAmmo].Propz and ammoprop_Power) = 0 then Message:= Message and not gm_Attack
   118         else if (Ammo^[CurSlot, CurAmmo].Propz and ammoprop_Power) = 0 then Message:= Message and not gm_Attack