]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud/panel/scoreboard.qc
Fix respawn time as int
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud / panel / scoreboard.qc
index e52feae10d2b26dac04d625c3caac33e3387a353..57af737c5bf8a7d391a1d7ff9450a409c9ce0fd0 100644 (file)
@@ -1516,7 +1516,7 @@ void Scoreboard_Draw()
                                (autocvar_hud_panel_scoreboard_respawntime_decimals ?
                                        count_seconds_decs(respawn_time - time, autocvar_hud_panel_scoreboard_respawntime_decimals)
                                        :
-                                       count_seconds(respawn_time - time)
+                                       count_seconds(ceil(respawn_time - time))
                                )
                        );
                }
@@ -1526,7 +1526,7 @@ void Scoreboard_Draw()
                                (autocvar_hud_panel_scoreboard_respawntime_decimals ?
                                        count_seconds_decs(respawn_time - time, autocvar_hud_panel_scoreboard_respawntime_decimals)
                                        :
-                                       count_seconds(respawn_time - time)
+                                       count_seconds(ceil(respawn_time - time))
                                )
                        );
                }