Fixed round draw when round ends in CS: GO. Thanks to Jargon.

This commit is contained in:
Richard Helgeby 2013-01-10 09:09:25 +01:00
parent d87138977b
commit cf73c6c52e

View File

@ -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);
}