]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Limit seconds to 4 characters (eg: 1.23 instead of 1.234567)
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 5 Oct 2012 23:51:29 +0000 (02:51 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 5 Oct 2012 23:51:29 +0000 (02:51 +0300)
qcsrc/client/scoreboard.qc

index b14a74f29e2f989d5788baf6fc23c2ba81357b99..ede635491322fd00ca1e2a94a4d1e2298fa5c367 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", 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)
                {