Skip to content

Commit

Permalink
Dont Automatically Open VoteMenu For Spectators
Browse files Browse the repository at this point in the history
  • Loading branch information
Deaod committed Nov 20, 2023
1 parent 762e287 commit 6989764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/MutVoteSys.uc
Original file line number Diff line number Diff line change
Expand Up @@ -309,14 +309,14 @@ function Mutate(string Command, PlayerPawn Sender) {
function OpenVoteMenuForAll() {
local VS_ChannelContainer C;
for (C = ChannelList; C != none; C = C.Next)
if (C.Channel != none && C.Channel.PlayerOwner != none)
if (C.Channel != none && C.PlayerInfo != none && C.PlayerInfo.bCanVote)
C.Channel.ShowVoteMenu();
}
function CloseVoteMenuForAll() {
local VS_ChannelContainer C;
for (C = ChannelList; C != none; C = C.Next)
if (C.Channel != none && C.Channel.PlayerOwner != none)
if (C.Channel != none && C.PlayerInfo != none && C.PlayerInfo.bCanVote)
C.Channel.HideVoteMenu();
}
Expand Down

0 comments on commit 6989764

Please sign in to comment.