Update VoteMenu.cs

Early cancels for VoteSound schedules
This commit is contained in:
ChocoTaco1 2020-04-02 01:04:43 -04:00
parent 4bbb4d05d8
commit 1618abbf11

View file

@ -1477,6 +1477,13 @@ function passCurrentVote() // Edit GG
clearBottomPrint(%cl);
}
clearVotes();
//Stop vote chimes
for(%i = 0; %i < $Host::EnableVoteSoundReminders; %i++)
{
if(isEventPending(Game.voteReminder[%i]))
cancel(Game.voteReminder[%i]);
Game.voteReminder[%i] = "";
}
}
// stopCurrentVote()
@ -1495,6 +1502,13 @@ function stopCurrentVote()
clearBottomPrint(%cl);
}
clearVotes();
//Stop vote chimes
for(%i = 0; %i < $Host::EnableVoteSoundReminders; %i++)
{
if(isEventPending(Game.voteReminder[%i]))
cancel(Game.voteReminder[%i]);
Game.voteReminder[%i] = "";
}
}
// calcVotes(%typeName, %arg1, %arg2, %arg3, %arg4)