]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix OOC not re-enabling if restartroundnow is used (#32401)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Mon, 23 Sep 2024 23:38:09 +0000 (01:38 +0200)
committerGitHub <noreply@github.com>
Mon, 23 Sep 2024 23:38:09 +0000 (09:38 +1000)
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.

Content.Server/Chat/Systems/ChatSystem.cs

index bcbc6a6144c92ce1e6500913ac694eec872b1de4..fb84c785d27638de75e930ad2f50d3c560934379 100644 (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;