hedgewars/HHHandlers.inc
changeset 3965 09eea558ba83
parent 3963 6090d2a2472e
child 3970 0f6e3219c108
equal deleted inserted replaced
3964:6aadae28b3df 3965:09eea558ba83
   325             begin
   325             begin
   326             isInMultiShoot:= true
   326             isInMultiShoot:= true
   327             end
   327             end
   328         else
   328         else
   329             begin
   329             begin
   330             OnUsedAmmo(CurrentHedgehog^);
       
   331             if ((Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NoRoundEndHint) = 0) and ((GameFlags and gfInfAttack) = 0) then
   330             if ((Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NoRoundEndHint) = 0) and ((GameFlags and gfInfAttack) = 0) then
   332                 begin
   331                 begin
   333                 TurnTimeLeft:= Ammoz[CurAmmoType].TimeAfterTurn;
   332                 TurnTimeLeft:= Ammoz[CurAmmoType].TimeAfterTurn;
   334                 State:= State or gstAttacked
   333                 State:= State or gstAttacked
   335                 end;
   334                 end;
   336             if (Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NoRoundEndHint) <> 0 then ApplyAmmoChanges(CurrentHedgehog^);
   335             if (Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NoRoundEndHint) <> 0 then ApplyAmmoChanges(CurrentHedgehog^);
   337             if (GameFlags and gfInfAttack) <> 0 then State:= State or gstAttacked
   336             if (GameFlags and gfInfAttack) <> 0 then State:= State or gstAttacked;
       
   337             OnUsedAmmo(CurrentHedgehog^)
   338             end;
   338             end;
   339         end
   339         end
   340     else
   340     else
   341         begin
   341         begin
   342         OnUsedAmmo(CurrentHedgehog^);
   342         OnUsedAmmo(CurrentHedgehog^);