hedgewars/HHHandlers.inc
changeset 3949 4c4c0a2507cc
parent 3945 c3d5eace0a32
child 3951 c9a63db3e603
equal deleted inserted replaced
3948:24daa33a3114 3949:4c4c0a2507cc
   325             begin
   325             begin
   326             OnUsedAmmo(CurrentHedgehog^);
   326             OnUsedAmmo(CurrentHedgehog^);
   327             if ((Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NoRoundEndHint) = 0) and ((GameFlags and gfInfAttack) = 0) then
   327             if ((Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NoRoundEndHint) = 0) and ((GameFlags and gfInfAttack) = 0) then
   328                 begin
   328                 begin
   329                 TurnTimeLeft:= Ammoz[CurAmmoType].TimeAfterTurn;
   329                 TurnTimeLeft:= Ammoz[CurAmmoType].TimeAfterTurn;
   330                 State:= State or gstAttacked
       
   331                 end
   330                 end
   332             else ApplyAmmoChanges(CurrentHedgehog^)
   331             else ApplyAmmoChanges(CurrentHedgehog^);
       
   332             if (GameFlags and gfInfAttack) <> 0 then State:= State or gstAttacked;
   333             end;
   333             end;
   334         end
   334         end
   335     else
   335     else
   336         begin
   336         begin
   337         OnUsedAmmo(CurrentHedgehog^);
   337         OnUsedAmmo(CurrentHedgehog^);