hedgewars/HHHandlers.inc
changeset 614 0e04504bc140
parent 610 9b5a6200f667
child 783 4f59db6f147d
equal deleted inserted replaced
613:e8cf72d0e0f7 614:0e04504bc140
    92 with CurrentHedgehog^.Gear^,
    92 with CurrentHedgehog^.Gear^,
    93      CurrentHedgehog^ do
    93      CurrentHedgehog^ do
    94      begin
    94      begin
    95         Inc(AttacksNum);
    95         Inc(AttacksNum);
    96         State:= State and not gstAttacking;
    96         State:= State and not gstAttacking;
    97         if Ammo^[CurSlot, CurAmmo].NumPerTurn >= AttacksNum then isInMultiShoot:= true
    97         if (Ammo^[CurSlot, CurAmmo].NumPerTurn >= AttacksNum) or
       
    98            ((GameFlags and gfMultiWeapon) <> 0) then isInMultiShoot:= true
    98            else begin
    99            else begin
    99            TurnTimeLeft:= Ammoz[Ammo^[CurSlot, CurAmmo].AmmoType].TimeAfterTurn;
   100            TurnTimeLeft:= Ammoz[Ammo^[CurSlot, CurAmmo].AmmoType].TimeAfterTurn;
   100            State:= State or gstAttacked;
   101            State:= State or gstAttacked;
   101            OnUsedAmmo(CurrentHedgehog^)
   102            OnUsedAmmo(CurrentHedgehog^)
   102            end;
   103            end;