This commit is contained in:
ChocoTaco1 2022-05-10 20:19:20 -04:00
parent 2aa74e7609
commit 0393f2522b

View file

@ -97,7 +97,6 @@ function DefaultGame::sendGameVoteMenu(%game, %client, %key)
{ {
if(%client.isSuperAdmin || (%client.isAdmin && $Host::AllowAdminStopVote)) // allow admins to stop votes if(%client.isSuperAdmin || (%client.isAdmin && $Host::AllowAdminStopVote)) // allow admins to stop votes
messageClient( %client, 'MsgVoteItem', "", %key, 'stopRunningVote', 'stop current vote', 'Stop the Vote'); messageClient( %client, 'MsgVoteItem', "", %key, 'stopRunningVote', 'stop current vote', 'Stop the Vote');
if(%client.isSuperAdmin || (%client.isAdmin && $Host::AllowAdminPassVote)) // allow admins to pass votes if(%client.isSuperAdmin || (%client.isAdmin && $Host::AllowAdminPassVote)) // allow admins to pass votes
messageClient( %client, 'MsgVoteItem', "", %key, 'passRunningVote', 'pass current vote', 'Pass the Vote'); messageClient( %client, 'MsgVoteItem', "", %key, 'passRunningVote', 'pass current vote', 'Pass the Vote');
return; return;
@ -1510,7 +1509,7 @@ function GameConnection::onDrop(%client, %reason)
Parent::onDrop(%client, %reason); Parent::onDrop(%client, %reason);
//Reset SetNextMission //Reset SetNextMission
if($HostGamePlayerCount - $HostGameBotCount == 0 && $Host::AllowPlayerVoteNextMission && $voteNext) if($HostGamePlayerCount - $HostGameBotCount == 0 && $voteNext)
{ {
echo("No clients on the server. Set next mission reset..."); echo("No clients on the server. Set next mission reset...");
$voteNext = 0; $voteNext = 0;