mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-08 10:58:36 +00:00
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
b3d458c17a
commit
c11b58072b
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user