From 79374bc0037d66c7311a2975e14ee4883968d31c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guilloux?= Date: Mon, 12 Feb 2024 20:28:30 +0100 Subject: [PATCH] Fix #12074: Don't allow "part" command for dedicated servers (#12075) --- src/console_cmds.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index 797b8e8ebe..98a521861e 100644 --- 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; }