From fd881f5d4d8b950a8bf896261351a2726d03247c Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Fri, 14 Dec 2012 04:53:16 -0500 Subject: [PATCH] Remove "Respawning now..." from scoreboard respawn count (looks glitchy) --- qcsrc/client/scoreboard.qc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/qcsrc/client/scoreboard.qc b/qcsrc/client/scoreboard.qc index 83991f6f1..303be3620 100644 --- a/qcsrc/client/scoreboard.qc +++ b/qcsrc/client/scoreboard.qc @@ -1385,10 +1385,9 @@ void HUD_DrawScoreboard() { // a negative number means we are awaiting respawn, time value is still the same respawn_time *= -1; // remove mark now that we checked it - if(time >= respawn_time) // don't show a negative value while the server is respawning the player (lag) - str = _("^1Respawning..."); - else - str = sprintf(_("^1Respawning in ^3%s^1 seconds..."), ftos_decimals(respawn_time - time, autocvar_scoreboard_respawntime_decimals)); + respawn_time = max(time, respawn_time); // don't show a negative value while the server is respawning the player (lag) + + str = sprintf(_("^1Respawning in ^3%s^1 seconds..."), ftos_decimals(respawn_time - time, autocvar_scoreboard_respawntime_decimals)); } else if(time < respawn_time) str = sprintf(_("You are dead, wait ^3%s^7 seconds before respawning"), ftos_decimals(respawn_time - time, autocvar_scoreboard_respawntime_decimals)); -- 2.39.2