Skip to content

Commit

Permalink
Фикс голосования о выборе карт (#1299)
Browse files Browse the repository at this point in the history
  • Loading branch information
babaevlsdd authored Feb 10, 2025
1 parent 42daef2 commit 67316d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Content.Server/Voting/Managers/VoteManager.DefaultVotes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,13 @@ private void CreateMapVote(ICommonSession? initiator)

_adminLogger.Add(LogType.Vote, LogImpact.Medium, $"Map vote finished: {picked.MapName}");
var ticker = _entityManager.EntitySysManager.GetEntitySystem<GameTicker>();
if (ticker.CanUpdateMap())
// Sunrise-Start
if (ticker.RunLevel == GameRunLevel.PreRoundLobby)
{
if (_gameMapManager.TrySelectMapIfEligible(picked.ID))
{
ticker.UpdateInfoText();
}
_cfg.SetCVar(CCVars.GameMap, picked.ID);
ticker.UpdateInfoText();
}
// Sunrise-End
else
{
if (ticker.RoundPreloadTime <= TimeSpan.Zero)
Expand Down

0 comments on commit 67316d6

Please sign in to comment.