Merge branch 'Dev' into Stable

This commit is contained in:
ChocoTaco 2025-01-11 17:47:49 -05:00
commit 48c3bcec73
5 changed files with 12 additions and 9 deletions

View file

@ -839,7 +839,7 @@ function DMGame::sendGameVoteMenu(%game, %client, %key)
if(%game.scheduleVote $= "") if(%game.scheduleVote $= "")
{ {
//echo(%client.ForceVote); //echo(%client.ForceVote);
if(%client.ForceVote $= "skip_confirm") if(%client.ForceVote $= "skip_confirm+")
return; return;
if(!%isAdmin || (%isAdmin && %client.ForceVote)) if(!%isAdmin || (%isAdmin && %client.ForceVote))

View file

@ -2265,7 +2265,7 @@ function LCTFGame::sendGameVoteMenu(%game, %client, %key)
if(%game.scheduleVote $= "") if(%game.scheduleVote $= "")
{ {
//echo(%client.ForceVote); //echo(%client.ForceVote);
if(%client.ForceVote $= "skip_confirm") if(%client.ForceVote $= "skip_confirm+")
return; return;
if(!%isAdmin || (%isAdmin && %client.ForceVote)) if(!%isAdmin || (%isAdmin && %client.ForceVote))

View file

@ -1175,7 +1175,7 @@ function LakRabbitGame::sendGameVoteMenu( %game, %client, %key )
if( %game.scheduleVote $= "" ) if( %game.scheduleVote $= "" )
{ {
//echo(%client.ForceVote); //echo(%client.ForceVote);
if(%client.ForceVote $= "skip_confirm") if(%client.ForceVote $= "skip_confirm+")
return; return;
if(!%isAdmin || (%isAdmin && %client.ForceVote)) if(!%isAdmin || (%isAdmin && %client.ForceVote))

View file

@ -2006,7 +2006,7 @@ function SCtFGame::sendGameVoteMenu(%game, %client, %key)
if ( %game.scheduleVote $= "" ) if ( %game.scheduleVote $= "" )
{ {
//echo(%client.ForceVote); //echo(%client.ForceVote);
if(%client.ForceVote $= "skip_confirm") if(%client.ForceVote $= "skip_confirm+")
return; return;
if(!%isAdmin || (%isAdmin && %client.ForceVote)) if(!%isAdmin || (%isAdmin && %client.ForceVote))

View file

@ -41,11 +41,13 @@ function DefaultGame::sendGameVoteMenu(%game, %client, %key)
%multipleTeams = %game.numTeams > 1; %multipleTeams = %game.numTeams > 1;
%client.k = %key; //For set next mission %client.k = %key; //For set next mission
if (%client.ForceVote > 0) if(%client.ForceVote > 0)
%client.ForceVote = %client.ForceVote - 1; %client.ForceVote = %client.ForceVote - 1;
if(%client.ForceVote $= "skip_confirm+")
%client.ForceVote = 0;
//Admin Submenu //Admin Submenu
if (%client.ForceVote > 0) if(%client.ForceVote > 0)
{ {
if(!$Host::TournamentMode) if(!$Host::TournamentMode)
messageClient(%client, 'MsgVoteItem', "", %key, 'VoteTournamentMode', 'change server to Tournament.', 'Vote Tournament Mode'); messageClient(%client, 'MsgVoteItem', "", %key, 'VoteTournamentMode', 'change server to Tournament.', 'Vote Tournament Mode');
@ -67,6 +69,7 @@ function DefaultGame::sendGameVoteMenu(%game, %client, %key)
{ {
messageClient(%client, 'MsgVoteItem', "", %key, 'VoteSkipConfirm', 'Are you sure you want to Skip the Mission?','Are you sure you want to Skip the Mission?'); messageClient(%client, 'MsgVoteItem', "", %key, 'VoteSkipConfirm', 'Are you sure you want to Skip the Mission?','Are you sure you want to Skip the Mission?');
messageClient(%client, 'MsgVoteItem', "", %key, 'VoteSkipMission', 'Yes, Skip the Mission', 'Yes, Skip the Mission' ); messageClient(%client, 'MsgVoteItem', "", %key, 'VoteSkipMission', 'Yes, Skip the Mission', 'Yes, Skip the Mission' );
%client.ForceVote = "skip_confirm+";
return; return;
} }
@ -554,13 +557,13 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %
} }
case "VoteSkipConfirm": case "VoteSkipConfirm":
if(%isAdmin && %client.ForceVote !$= "skip_confirm") if(%client.ForceVote $= "skip_confirm+")
%client.ForceVote = 0;
else if(%isAdmin && %client.ForceVote !$= "skip_confirm")
{ {
%client.ForceVote = "skip_confirm"; %client.ForceVote = "skip_confirm";
return; return;
} }
else
%client.ForceVote = 0;
case "VoteSkipMission": case "VoteSkipMission":
if((!%isAdmin && $Host::AllowPlayerVoteSkipMission) || (%isAdmin && %client.ForceVote)) if((!%isAdmin && $Host::AllowPlayerVoteSkipMission) || (%isAdmin && %client.ForceVote))