hedgewars/HHHandlers.inc
changeset 5034 a30772158f50
parent 5031 e26f430be1ed
child 5035 a00636066077
equal deleted inserted replaced
5033:46da78d7966b 5034:a30772158f50
   387             begin
   387             begin
   388             OnUsedAmmo(CurrentHedgehog^);
   388             OnUsedAmmo(CurrentHedgehog^);
   389             if ((Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) = 0) and ((GameFlags and gfInfAttack) = 0) then
   389             if ((Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) = 0) and ((GameFlags and gfInfAttack) = 0) then
   390                 begin
   390                 begin
   391                 if TagTurnTimeLeft = 0 then TagTurnTimeLeft:= TurnTimeLeft;
   391                 if TagTurnTimeLeft = 0 then TagTurnTimeLeft:= TurnTimeLeft;
   392                 TurnTimeLeft:=round(Ammoz[a].TimeAfterTurn * (cGetAwayTime / 100));
   392                 TurnTimeLeft:=Ammoz[a].TimeAfterTurn * cGetAwayTime div 100;
   393                 end;
   393                 end;
   394             if ((Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) = 0) then State:= State or gstAttacked;
   394             if ((Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) = 0) then State:= State or gstAttacked;
   395             if (CurAmmoGear <> nil) and ((Ammoz[CurAmmoGear^.AmmoType].Ammo.Propz and ammoprop_AltAttack) <> 0) then
   395             if (CurAmmoGear <> nil) and ((Ammoz[CurAmmoGear^.AmmoType].Ammo.Propz and ammoprop_AltAttack) <> 0) then
   396                 ShowCrosshair:= (Ammoz[CurAmmoGear^.AmmoType].Ammo.Propz and ammoprop_NoCrossHair) = 0
   396                 ShowCrosshair:= (Ammoz[CurAmmoGear^.AmmoType].Ammo.Propz and ammoprop_NoCrossHair) = 0
   397             else
   397             else