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:
parent
ec9af8feb6
commit
151834a948
@ -65,7 +65,11 @@ void TimeLeftEvents::FireGameEvent(IGameEvent *event)
|
||||
}
|
||||
else if (strcmp(name, "round_end") == 0)
|
||||
{
|
||||
#if SOURCE_ENGINE == SE_CSGO
|
||||
if (event->GetInt("reason") == 16)
|
||||
#else
|
||||
if (event->GetInt("reason") == 15)
|
||||
#endif
|
||||
{
|
||||
get_new_timeleft_offset = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user