Skip to content

Commit

Permalink
Fix Message When Voting For Candidates
Browse files Browse the repository at this point in the history
  • Loading branch information
Deaod committed Nov 16, 2023
1 parent 24f9dfe commit e650e73
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions Classes/VS_Info.uc
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,19 @@ function VS_Candidate AddCandidateVote(VS_PlayerChannel Origin, VS_Candidate Can
VoteSys.AdminForceTravelTo(P, M);
return none;
} else {
VoteSys.BroadcastLocalizedMessage2(
class'VS_Msg_LocalMessage', 6,
Origin.PlayerOwner.PlayerReplicationInfo.PlayerName,
);
if (Candidate.MapRef != none) {
VoteSys.BroadcastLocalizedMessage2(
class'VS_Msg_LocalMessage', 6,
Origin.PlayerOwner.PlayerReplicationInfo.PlayerName,
Candidate.MapRef.MapName@"("$Candidate.PresetRef.Abbreviation$")"
);
} else {
VoteSys.BroadcastLocalizedMessage2(
class'VS_Msg_LocalMessage', 12,
Origin.PlayerOwner.PlayerReplicationInfo.PlayerName,
Candidate.PresetRef.Abbreviation
);
}
Candidate.Votes += 1;
Candidate.SortInList();
return Candidate;
Expand Down

0 comments on commit e650e73

Please sign in to comment.