equal
deleted
inserted
replaced
180 Gear^.Hedgehog^ do |
180 Gear^.Hedgehog^ do |
181 begin |
181 begin |
182 if ((State and gstHHDriven) <> 0)and |
182 if ((State and gstHHDriven) <> 0)and |
183 ((State and (gstAttacked or gstHHChooseTarget)) = 0) and |
183 ((State and (gstAttacked or gstHHChooseTarget)) = 0) and |
184 (((State and gstMoving) = 0) or |
184 (((State and gstMoving) = 0) or |
|
185 (CurAmmoType = amTeleport) or |
185 // Allow attacks while moving on ammo with AltAttack |
186 // Allow attacks while moving on ammo with AltAttack |
186 ((CurAmmoGear <> nil) and ((Ammoz[CurAmmoGear^.AmmoType].Ammo.Propz and ammoprop_AltAttack) <> 0)) or |
187 ((CurAmmoGear <> nil) and ((Ammoz[CurAmmoGear^.AmmoType].Ammo.Propz and ammoprop_AltAttack) <> 0)) or |
187 ((Ammoz[CurAmmoType].Ammo.Propz and ammoprop_AttackInMove) <> 0)) and |
188 ((Ammoz[CurAmmoType].Ammo.Propz and ammoprop_AttackInMove) <> 0)) and |
188 ((TargetPoint.X <> NoPointX) or ((Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NeedTarget) = 0)) then |
189 ((TargetPoint.X <> NoPointX) or ((Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NeedTarget) = 0)) then |
189 begin |
190 begin |