Show time in CS:S while paused.

This commit is contained in:
shavit 2018-01-26 05:56:57 +02:00
parent d7f9ed3186
commit a4bcaa6fcf

View File

@ -771,8 +771,6 @@ void UpdateHUD(int client)
else else
{ {
if(status != Timer_Stopped) if(status != Timer_Stopped)
{
if(Shavit_GetTimerStatus(target) == Timer_Running)
{ {
char[] sFirstLine = new char[64]; char[] sFirstLine = new char[64];
strcopy(sFirstLine, 64, gS_StyleStrings[style][sStyleName]); strcopy(sFirstLine, 64, gS_StyleStrings[style][sStyleName]);
@ -783,11 +781,10 @@ void UpdateHUD(int client)
} }
FormatEx(sHintText, 512, "%s\n%T: %s (%d)\n%T: %d\n%T: %d\n%T: %d%s", sFirstLine, "HudTimeText", client, sTime, rank, "HudJumpsText", client, jumps, "HudStrafeText", client, strafes, "HudSpeedText", client, iSpeed, (gA_StyleSettings[style][fVelocityLimit] > 0.0 && Shavit_InsideZone(target, Zone_NoVelLimit, -1))? "\nNo Speed Limit":""); FormatEx(sHintText, 512, "%s\n%T: %s (%d)\n%T: %d\n%T: %d\n%T: %d%s", sFirstLine, "HudTimeText", client, sTime, rank, "HudJumpsText", client, jumps, "HudStrafeText", client, strafes, "HudSpeedText", client, iSpeed, (gA_StyleSettings[style][fVelocityLimit] > 0.0 && Shavit_InsideZone(target, Zone_NoVelLimit, -1))? "\nNo Speed Limit":"");
}
else if(Shavit_GetTimerStatus(target) == Timer_Paused)
{ {
FormatEx(sHintText, 16, "%T", "HudPaused", client); Format(sHintText, 512, "%s\n%T", sHintText, "HudPaused", client);
} }
if(track != Track_Main) if(track != Track_Main)