]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bound timer to 9.999999 seconds... no one should set a spawn timer longer than 10...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 6 Oct 2012 00:02:32 +0000 (03:02 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 6 Oct 2012 00:02:32 +0000 (03:02 +0300)
qcsrc/client/scoreboard.qc

index ede635491322fd00ca1e2a94a4d1e2298fa5c367..3deb10caa9747cc251089aa1b04edd4ec541b166 100644 (file)
@@ -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)
                {