# HG changeset patch # User Loïc Guilloux # Date 2024-02-12 19:28:30 # Node ID 62e6a2924a0b46c1eed5517a7324b78881811862 # Parent a2b9c9bbf90f7459a047f6fba315ecdf96c1d6be Fix #12074: Don't allow "part" command for dedicated servers (#12075) diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -1713,6 +1713,11 @@ DEF_CONSOLE_CMD(ConPart) if (_game_mode != GM_NORMAL) return false; + if (_network_dedicated) { + IConsolePrint(CC_ERROR, "A dedicated server can not leave the game."); + return false; + } + _switch_mode = SM_MENU; return true; }