Fix case of not calling OnMapTimeLeftChanged in CS:GO (#563)

Round end reasons in CS:GO are +1 from the ones in CS:S. The
CSRoundEnd_GameStart reason for when the OnMapTimeLeftChanged forward
should be called should be one higher than in CS:S.
This commit is contained in:
peace-maker 2016-12-01 18:09:48 -07:00 committed by Kyle Sanderson
parent ec9af8feb6
commit 151834a948

View File

@ -65,7 +65,11 @@ void TimeLeftEvents::FireGameEvent(IGameEvent *event)
} }
else if (strcmp(name, "round_end") == 0) else if (strcmp(name, "round_end") == 0)
{ {
#if SOURCE_ENGINE == SE_CSGO
if (event->GetInt("reason") == 16)
#else
if (event->GetInt("reason") == 15) if (event->GetInt("reason") == 15)
#endif
{ {
get_new_timeleft_offset = true; get_new_timeleft_offset = true;
} }