]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove a wasted global variable
authorterencehill <piuntn@gmail.com>
Wed, 17 May 2017 23:39:45 +0000 (01:39 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 17 May 2017 23:39:45 +0000 (01:39 +0200)
qcsrc/server/sv_main.qc

index 1448218796b17c7c6b3bef14bcd88f27ec04387e..7ba19dafd5fcfe61489e3124f388869579877c38 100644 (file)
@@ -160,8 +160,7 @@ Called before each frame by the server
 =============
 */
 
-float game_delay;
-float game_delay_last;
+bool game_delay_last;
 
 bool autocvar_sv_autopause = false;
 float RedirectionThink();
@@ -220,11 +219,9 @@ void StartFrame()
        skill = autocvar_skill;
 
        // detect when the pre-game countdown (if any) has ended and the game has started
-       game_delay = (time < game_starttime);
-
+       bool game_delay = (time < game_starttime);
        if (autocvar_sv_eventlog && game_delay_last && !game_delay)
                GameLogEcho(":startdelay_ended");
-
        game_delay_last = game_delay;
 
        CreatureFrame_All();