fixed that on terminate round would constantly trigger new votes again

This commit is contained in:
jenz 2024-09-20 11:04:56 +02:00
parent cbf1d4e15a
commit 4302ed9247

View File

@ -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