Hide save/load game in non-coop multiplayer
Multiplayer non-coop cannot save, so offering the options is pointless.
Fixes: 7338bb2402
("Extend in-game esc menu with options and saving")
Reported by: zicodxx @ https://github.com/dxx-rebirth/dxx-rebirth/issues/42
This commit is contained in:
parent
0f74a66063
commit
4ab72a4d9a
|
@ -718,7 +718,8 @@ static window_event_result HandleSystemKey(int key)
|
|||
|
||||
case KEY_ESC:
|
||||
{
|
||||
const auto choice = nm_messagebox(NULL, 4, "Abort Game", TXT_OPTIONS_, "Save Game...", TXT_LOAD_GAME, "Game Menu");
|
||||
const bool allow_saveload = !(Game_mode & GM_MULTI) || (Game_mode & GM_MULTI_COOP);
|
||||
const auto choice = nm_messagebox_str(nullptr, allow_saveload ? nm_messagebox_tie("Abort Game", TXT_OPTIONS_, "Save Game...", TXT_LOAD_GAME) : nm_messagebox_tie("Abort Game", TXT_OPTIONS_), "Game Menu");
|
||||
switch(choice)
|
||||
{
|
||||
case 0:
|
||||
|
|
Loading…
Reference in a new issue