equal
deleted
inserted
replaced
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 |