Hide save/load game menu items for non-host

Only the host is allowed to save/load, so there is no reason to show the
items to non-hosts.
This commit is contained in:
Kp 2015-11-14 18:17:21 +00:00
parent 8997ec557d
commit af3241098b

View file

@ -725,7 +725,7 @@ static window_event_result HandleSystemKey(int key)
case KEY_ESC:
{
const bool allow_saveload = !(Game_mode & GM_MULTI) || (Game_mode & GM_MULTI_COOP);
const bool allow_saveload = !(Game_mode & GM_MULTI) || ((Game_mode & GM_MULTI_COOP) && Player_num == 0);
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)
{