Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
VigersRay committed Feb 10, 2025
2 parents 07857c5 + 67316d6 commit 76d4935
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 76d4935

Please sign in to comment.