From cf73c6c52eeb967d2badd5edaf8584d896927423 Mon Sep 17 00:00:00 2001 From: Richard Helgeby Date: Thu, 10 Jan 2013 09:09:25 +0100 Subject: [PATCH] Fixed round draw when round ends in CS: GO. Thanks to Jargon. --- src/zr/roundend.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/zr/roundend.inc b/src/zr/roundend.inc index e6bab28..ac4d4f4 100644 --- a/src/zr/roundend.inc +++ b/src/zr/roundend.inc @@ -135,6 +135,14 @@ RoundEndOnRoundFreezeEnd() // Convert to seconds. roundtime *= 60.0; + // Subtract one second if running CS: GO to prevent round draw when round + // ends. For some reason the timing doesn't match the actual round end. + // Thanks to Jargon. + if (g_Game == Game_CSGO) + { + roundtime--; + } + // Start timer. tRoundEnd = CreateTimer(roundtime, RoundEndTimer, _, TIMER_FLAG_NO_MAPCHANGE); }