1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-30 18:09:09 +00:00

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

This commit is contained in:
Loïc Guilloux
2024-02-12 20:28:30 +01:00
committed by GitHub
parent a3e6f82150
commit 79374bc003

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