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

pull/661/head
Loïc Guilloux 4 months ago committed by GitHub
parent a3e6f82150
commit 79374bc003
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save