Add variables to prevent voting of various kinds (#5361)
* Add a way to disable voting for maximum authoritarianism * Allow disabling specific vote types via cvars * Migrate standard-vote-to-cvar dictionary to being static
This commit is contained in:
@@ -186,7 +186,8 @@ namespace Content.Client.Voting
|
||||
_standardVoteTimeouts.Clear();
|
||||
foreach (var (type, time) in message.VotesUnavailable)
|
||||
{
|
||||
_standardVoteTimeouts.Add(type, _gameTiming.RealServerToLocal(time));
|
||||
var fixedTime = (time == TimeSpan.Zero) ? time : _gameTiming.RealServerToLocal(time);
|
||||
_standardVoteTimeouts.Add(type, fixedTime);
|
||||
}
|
||||
|
||||
CanCallStandardVotesChanged?.Invoke();
|
||||
|
||||
Reference in New Issue
Block a user