mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-19 16:14:44 +00:00
Update VoteMenu.cs
Early cancels for VoteSound schedules
This commit is contained in:
parent
4bbb4d05d8
commit
1618abbf11
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue