(Savegames now get loaded after GMM dialogue execution. This avoids mouse cursor glitches (e.g. mouse cursors which get changed during loadGameState() being popped when the dialogue closes).
This commit is contained in:
athrxx 2011-06-25 15:41:58 +02:00
parent 5a2bc12f26
commit 1a05efa8ed
3 changed files with 39 additions and 7 deletions

View file

@ -246,14 +246,10 @@ void MainMenuDialog::load() {
int slot = _loadDialog->runModalWithPluginAndTarget(plugin, ConfMan.getActiveDomainName());
if (slot >= 0) {
// FIXME: For now we just ignore the return
// value, which is quite bad since it could
// be a fatal loading error, which renders
// the engine unusable.
_engine->loadGameState(slot);
_engine->setGameToLoadSlot(slot);
if (slot >= 0)
close();
}
}
enum {