1
0
Fork 0

Fix #12074: Don't allow "part" command for dedicated servers

pull/12075/head
glx22 2024-02-12 19:49:41 +01:00
parent a3e6f82150
commit c19eef2a95
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}