hedgewars/HHHandlers.inc
changeset 5026 e83d4552625f
parent 5024 1e332947147c
child 5031 e26f430be1ed
equal deleted inserted replaced
5025:ac1691d35cf2 5026:e83d4552625f
   380             begin
   380             begin
   381             OnUsedAmmo(CurrentHedgehog^);
   381             OnUsedAmmo(CurrentHedgehog^);
   382             if ((Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) = 0) and ((GameFlags and gfInfAttack) = 0) then
   382             if ((Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) = 0) and ((GameFlags and gfInfAttack) = 0) then
   383                 begin
   383                 begin
   384                 if TagTurnTimeLeft = 0 then TagTurnTimeLeft:= TurnTimeLeft;
   384                 if TagTurnTimeLeft = 0 then TagTurnTimeLeft:= TurnTimeLeft;
   385                 TurnTimeLeft:= Ammoz[a].TimeAfterTurn;
   385                 TurnTimeLeft:=round(Ammoz[a].TimeAfterTurn * (cGetAwayTime / 100));
   386                 end;
   386                 end;
   387             if ((Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) = 0) then State:= State or gstAttacked;
   387             if ((Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) = 0) then State:= State or gstAttacked;
   388             if (Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) <> 0 then ApplyAmmoChanges(CurrentHedgehog^)
   388             if (Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) <> 0 then ApplyAmmoChanges(CurrentHedgehog^)
   389             end;
   389             end;
   390         end
   390         end