1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-19 02:41:35 +00:00

Moved autosave to before you rest, not after it.

This commit is contained in:
Thomas 2014-04-23 23:33:57 -04:00
parent a598060071
commit 6a8bf71c4c

View file

@ -121,6 +121,8 @@ namespace MWGui
MWBase::World* world = MWBase::Environment::get().getWorld(); MWBase::World* world = MWBase::Environment::get().getWorld();
world->getFader ()->fadeOut(0.2); world->getFader ()->fadeOut(0.2);
setVisible(false); setVisible(false);
if(Settings::Manager::getBool("autosave","Saves")) //autosaves
autosave();
mProgressBar.setVisible (true); mProgressBar.setVisible (true);
mWaiting = true; mWaiting = true;
@ -238,8 +240,6 @@ namespace MWGui
{ {
MWBase::Environment::get().getWindowManager()->pushGuiMode (GM_Levelup); MWBase::Environment::get().getWindowManager()->pushGuiMode (GM_Levelup);
} }
if(Settings::Manager::getBool("autosave","Saves"))
autosave();
} }
void WaitDialog::autosave() { void WaitDialog::autosave() {