From 1618abbf11e72388bc3bd6014324ecf7ba791a3c Mon Sep 17 00:00:00 2001 From: ChocoTaco1 Date: Thu, 2 Apr 2020 01:04:43 -0400 Subject: [PATCH] Update VoteMenu.cs Early cancels for VoteSound schedules --- Classic/scripts/autoexec/VoteMenu.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Classic/scripts/autoexec/VoteMenu.cs b/Classic/scripts/autoexec/VoteMenu.cs index 67d116f..be0516f 100644 --- a/Classic/scripts/autoexec/VoteMenu.cs +++ b/Classic/scripts/autoexec/VoteMenu.cs @@ -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)