hedgewars/HHHandlers.inc
changeset 4015 2897cf5730e7
parent 3991 82e4a5ef18f7
child 4020 898a55b81d10
equal deleted inserted replaced
4014:e9baae83370b 4015:2897cf5730e7
    52     Gear^.Message:= Gear^.Message and not gmSlot;
    52     Gear^.Message:= Gear^.Message and not gmSlot;
    53     ammoidx:= 0;
    53     ammoidx:= 0;
    54     while (ammoidx < cMaxSlotAmmoIndex) and (Ammo^[slot, ammoidx].AmmoType <> CurAmmoType) do inc(ammoidx);
    54     while (ammoidx < cMaxSlotAmmoIndex) and (Ammo^[slot, ammoidx].AmmoType <> CurAmmoType) do inc(ammoidx);
    55 
    55 
    56     if ((Gear^.State and (gstAttacking or gstAttacked)) <> 0) or
    56     if ((Gear^.State and (gstAttacking or gstAttacked)) <> 0) or
    57        ((MultiShootAttacks > 0) and (CurAmmoGear <> nil) and ((Ammoz[CurAmmoGear^.AmmoType].Ammo.Propz and ammoprop_NoRoundEndHint) = 0)) or
    57        ((MultiShootAttacks > 0) and ((Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NoRoundEndHint) = 0)) or
    58        ((Gear^.State and gstHHDriven) = 0) then exit;
    58        ((Gear^.State and gstHHDriven) = 0) then exit;
    59 
    59 
    60     if ((Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NoRoundEndHint) <> 0) and (MultiShootAttacks > 0) then OnUsedAmmo(PHedgehog(Gear^.Hedgehog)^);
    60     if ((Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NoRoundEndHint) <> 0) and (MultiShootAttacks > 0) then OnUsedAmmo(PHedgehog(Gear^.Hedgehog)^);
    61 
    61 
    62     MultiShootAttacks:= 0;
    62     MultiShootAttacks:= 0;