From 41f3bac2c020f53569d068ec32274dd4afa446e6 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 18 May 2017 01:39:45 +0200 Subject: [PATCH] Remove a wasted global variable --- qcsrc/server/sv_main.qc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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(); -- 2.39.2