mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
block saving while chargen is in progress
This commit is contained in:
parent
8b7889f8e5
commit
ee6ddc3404
@ -97,7 +97,8 @@ namespace MWGui
|
|||||||
MWBase::Environment::get().getStateManager()->characterEnd())
|
MWBase::Environment::get().getStateManager()->characterEnd())
|
||||||
buttons.push_back("loadgame");
|
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("savegame");
|
||||||
|
|
||||||
buttons.push_back("options");
|
buttons.push_back("options");
|
||||||
|
@ -60,6 +60,8 @@ void MWState::StateManager::newGame (bool bypass)
|
|||||||
MWBase::Environment::get().getWorld()->startNewGame();
|
MWBase::Environment::get().getWorld()->startNewGame();
|
||||||
MWBase::Environment::get().getWindowManager()->setNewGame (true);
|
MWBase::Environment::get().getWindowManager()->setNewGame (true);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
MWBase::Environment::get().getWorld()->setGlobalInt ("chargenstate", -1);
|
||||||
|
|
||||||
mState = State_Running;
|
mState = State_Running;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user