From 4d4bced929c663e68dab15d62dec08550a7984f2 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Mon, 9 Jul 2018 22:53:18 +0300 Subject: [PATCH] [Client] Allow singleplayer-only saves in main menu during multiplayer --- apps/openmw/mwgui/mainmenu.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/openmw/mwgui/mainmenu.cpp b/apps/openmw/mwgui/mainmenu.cpp index b79646d71..aa974c804 100644 --- a/apps/openmw/mwgui/mainmenu.cpp +++ b/apps/openmw/mwgui/mainmenu.cpp @@ -236,18 +236,22 @@ namespace MWGui /* Start of tes3mp change (major) - In multiplayer, the main menu should not have options for starting, loading or saving the game, + In multiplayer, the main menu should not have options for starting or loading the game, so they have been removed + + Saving the game should still be possible, as long as it's clear that the resulting + save is singleplayer-only; this will prevent players from completely losing their + characters and houses on servers if those servers ever go down */ - /* - buttons.push_back("newgame"); + //buttons.push_back("newgame"); if (state==MWBase::StateManager::State_Running && MWBase::Environment::get().getWorld()->getGlobalInt ("chargenstate")==-1 && MWBase::Environment::get().getWindowManager()->isSavingAllowed()) buttons.push_back("savegame"); + /* if (MWBase::Environment::get().getStateManager()->characterBegin()!= MWBase::Environment::get().getStateManager()->characterEnd()) buttons.push_back("loadgame");