From: Samual Lenks Date: Tue, 5 Mar 2013 04:50:42 +0000 (-0500) Subject: Use count_seconds here too X-Git-Tag: xonotic-v0.7.0~62^2~17 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9df93d5c51d5fb316148f7bb5dcde9ef52420463;p=xonotic%2Fxonotic-data.pk3dir.git Use count_seconds here too --- diff --git a/qcsrc/client/scoreboard.qc b/qcsrc/client/scoreboard.qc index 2bd37727d..2ec7db062 100644 --- a/qcsrc/client/scoreboard.qc +++ b/qcsrc/client/scoreboard.qc @@ -1393,10 +1393,24 @@ void HUD_DrawScoreboard() respawn_time *= -1; // remove mark now that we checked it 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)); + str = sprintf(_("^1Respawning in ^3%s^1..."), + (autocvar_scoreboard_respawntime_decimals ? + count_seconds_decs(respawn_time - time, autocvar_scoreboard_respawntime_decimals) + : + count_seconds(respawn_time - time) + ) + ); } 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)); + { + str = sprintf(_("You are dead, wait ^3%s^7 before respawning"), + (autocvar_scoreboard_respawntime_decimals ? + count_seconds_decs(respawn_time - time, autocvar_scoreboard_respawntime_decimals) + : + count_seconds(respawn_time - time) + ) + ); + } else if(time >= respawn_time) str = sprintf(_("You are dead, press ^2%s^7 to respawn"), getcommandkey("jump", "+jump"));