fixed that on terminate round would constantly trigger new votes again
This commit is contained in:
parent
cbf1d4e15a
commit
4302ed9247
@ -941,6 +941,10 @@ public Action CS_OnTerminateRound(float &delay, CSRoundEndReason &reason)
|
||||
{
|
||||
int timeleft;
|
||||
GetMapTimeLeft(timeleft);
|
||||
if (g_WaitingForVote)
|
||||
{
|
||||
return Plugin_Handled; //it keeps retriggering this Action.
|
||||
}
|
||||
if (timeleft <= 0 && !g_ChangeMapAtRoundEnd)
|
||||
{
|
||||
InitiateVote(MapChange_Instant); //feature so mapvote happens at actual mapend
|
||||
|
Loading…
Reference in New Issue
Block a user