From: Mircea Kitsune Date: Fri, 5 Oct 2012 23:51:29 +0000 (+0300) Subject: Limit seconds to 4 characters (eg: 1.23 instead of 1.234567) X-Git-Tag: xonotic-v0.7.0~198^2~9 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;ds=sidebyside;h=809becdca7b6d0bd84d3b9e0939d6498806d8d7c;p=xonotic%2Fxonotic-data.pk3dir.git Limit seconds to 4 characters (eg: 1.23 instead of 1.234567) --- diff --git a/qcsrc/client/scoreboard.qc b/qcsrc/client/scoreboard.qc index b14a74f29..ede635491 100644 --- a/qcsrc/client/scoreboard.qc +++ b/qcsrc/client/scoreboard.qc @@ -1385,11 +1385,11 @@ void HUD_DrawScoreboard() { // a negative value means we are awaiting respawn, time value is still the same respawn_time *= -1; // remove our mark now that we checked it - str = strcat("Respawning in ^3", ftos(respawn_time - time), "^7 seconds..."); + str = strcat("Respawning in ^3", substring(ftos(respawn_time - time), 0, 4), "^7 seconds..."); } else if(time < respawn_time) { - str = strcat("You are dead, wait ^3", ftos(respawn_time - time), "^7 seconds before respawning"); + str = strcat("You are dead, wait ^3", substring(ftos(respawn_time - time), 0, 4), "^7 seconds before respawning"); } else if(time >= respawn_time) {