Fix OOC not re-enabling if restartroundnow is used (#32401)

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.
This commit is contained in:
Pieter-Jan Briers
2024-09-24 01:38:09 +02:00
committed by GitHub
parent 594aad0fa9
commit 1450d76337

View File

@@ -122,6 +122,7 @@ public sealed partial class ChatSystem : SharedChatSystem
_configurationManager.SetCVar(CCVars.OocEnabled, false);
break;
case GameRunLevel.PostRound:
case GameRunLevel.PreRoundLobby:
if (!_configurationManager.GetCVar(CCVars.OocEnableDuringRound))
_configurationManager.SetCVar(CCVars.OocEnabled, true);
break;