From: terencehill Date: Wed, 17 May 2017 23:39:45 +0000 (+0200) Subject: Remove a wasted global variable X-Git-Tag: xonotic-v0.8.5~2777 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=41f3bac2c020f53569d068ec32274dd4afa446e6;p=xonotic%2Fxonotic-data.pk3dir.git Remove a wasted global variable --- diff --git a/qcsrc/server/sv_main.qc b/qcsrc/server/sv_main.qc index 144821879..7ba19dafd 100644 --- a/qcsrc/server/sv_main.qc +++ b/qcsrc/server/sv_main.qc @@ -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();