forked from mirror/openmw-tes3mp
block saving while chargen is in progress
This commit is contained in:
parent
8b7889f8e5
commit
ee6ddc3404
2 changed files with 4 additions and 1 deletions
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue