1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00

block saving while chargen is in progress

This commit is contained in:
Marc Zinnschlag 2013-12-05 14:56:30 +01:00
parent 8b7889f8e5
commit ee6ddc3404
2 changed files with 4 additions and 1 deletions

View File

@ -97,7 +97,8 @@ namespace MWGui
MWBase::Environment::get().getStateManager()->characterEnd())
buttons.push_back("loadgame");
if (state==MWBase::StateManager::State_Running)
if (state==MWBase::StateManager::State_Running &&
MWBase::Environment::get().getWorld()->getGlobalInt ("chargenstate")==-1)
buttons.push_back("savegame");
buttons.push_back("options");

View File

@ -60,6 +60,8 @@ void MWState::StateManager::newGame (bool bypass)
MWBase::Environment::get().getWorld()->startNewGame();
MWBase::Environment::get().getWindowManager()->setNewGame (true);
}
else
MWBase::Environment::get().getWorld()->setGlobalInt ("chargenstate", -1);
mState = State_Running;
}