]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix respawn time as int
authorterencehill <piuntn@gmail.com>
Mon, 15 Aug 2016 09:39:32 +0000 (11:39 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 15 Aug 2016 09:39:32 +0000 (11:39 +0200)
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))
                                )
                        );
                }