From 8f87bad83c9ca0dce84e7d4753fcd81ffdd39db6 Mon Sep 17 00:00:00 2001 From: DrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com> Date: Mon, 4 Nov 2024 16:12:29 -0800 Subject: [PATCH] Fix DisplayVotes doing nothing for a vote (#33170) --- Content.Server/Voting/Managers/VoteManager.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Content.Server/Voting/Managers/VoteManager.cs b/Content.Server/Voting/Managers/VoteManager.cs index 04e3191648..10b975fdca 100644 --- a/Content.Server/Voting/Managers/VoteManager.cs +++ b/Content.Server/Voting/Managers/VoteManager.cs @@ -24,7 +24,6 @@ using Robust.Shared.Random; using Robust.Shared.Timing; using Robust.Shared.Utility; - namespace Content.Server.Voting.Managers { public sealed partial class VoteManager : IVoteManager @@ -40,7 +39,7 @@ namespace Content.Server.Voting.Managers [Dependency] private readonly IGameMapManager _gameMapManager = default!; [Dependency] private readonly IEntityManager _entityManager = default!; [Dependency] private readonly IAdminLogManager _adminLogger = default!; - [Dependency] private readonly ISharedPlaytimeManager _playtimeManager = default!; + [Dependency] private readonly ISharedPlaytimeManager _playtimeManager = default!; private int _nextVoteId = 1; @@ -282,7 +281,7 @@ namespace Content.Server.Voting.Managers } // Admin always see the vote count, even if the vote is set to hide it. - if (_adminMgr.HasAdminFlag(player, AdminFlags.Moderator)) + if (v.DisplayVotes || _adminMgr.HasAdminFlag(player, AdminFlags.Moderator)) { msg.DisplayVotes = true; }