From e66d119ea383c642f0eab2905bd005067c7ba1b9 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Sat, 6 Oct 2012 03:02:32 +0300 Subject: [PATCH] Bound timer to 9.999999 seconds... no one should set a spawn timer longer than 10 either way --- qcsrc/client/scoreboard.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.2