Skip to content

Commit

Permalink
Fix OOC not re-enabling if restartroundnow is used (#32401)
Browse files Browse the repository at this point in the history
The ChatSystem code for re-enabling OOC only ran during PostRound, which gets skipped over when doing restartroundnow. Now it does this on PreRoundLobby too.
  • Loading branch information
PJB3005 authored Sep 23, 2024
1 parent 594aad0 commit 1450d76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Content.Server/Chat/Systems/ChatSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ private void OnGameChange(GameRunLevelChangedEvent ev)
_configurationManager.SetCVar(CCVars.OocEnabled, false);
break;
case GameRunLevel.PostRound:
case GameRunLevel.PreRoundLobby:
if (!_configurationManager.GetCVar(CCVars.OocEnableDuringRound))
_configurationManager.SetCVar(CCVars.OocEnabled, true);
break;
Expand Down

0 comments on commit 1450d76

Please sign in to comment.