From: Mircea Kitsune Date: Sat, 6 Oct 2012 00:02:32 +0000 (+0300) Subject: Bound timer to 9.999999 seconds... no one should set a spawn timer longer than 10... X-Git-Tag: xonotic-v0.7.0~198^2~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e66d119ea383c642f0eab2905bd005067c7ba1b9;p=xonotic%2Fxonotic-data.pk3dir.git Bound timer to 9.999999 seconds... no one should set a spawn timer longer than 10 either way --- diff --git a/qcsrc/client/scoreboard.qc b/qcsrc/client/scoreboard.qc index ede635491..3deb10caa 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", substring(ftos(respawn_time - time), 0, 4), "^7 seconds..."); + str = strcat("Respawning in ^3", substring(ftos(bound(0, respawn_time - time, 9.999999)), 0, 4), "^7 seconds..."); } else if(time < respawn_time) { - str = strcat("You are dead, wait ^3", substring(ftos(respawn_time - time), 0, 4), "^7 seconds before respawning"); + str = strcat("You are dead, wait ^3", substring(ftos(bound(0, respawn_time - time, 9.999999)), 0, 4), "^7 seconds before respawning"); } else if(time >= respawn_time) {