block saving while chargen is in progress

actorid
Marc Zinnschlag 11 years ago
parent 8b7889f8e5
commit ee6ddc3404

@ -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…
Cancel
Save