From 400958b04562c713e2343901d7a9ad8ee554c354 Mon Sep 17 00:00:00 2001 From: Vladimir Menshakov Date: Sat, 2 Jan 2010 22:40:17 +0000 Subject: do not show logo while loading save svn-id: r46905 --- engines/teenagent/teenagent.cpp | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/engines/teenagent/teenagent.cpp b/engines/teenagent/teenagent.cpp index 7f941f7407..9dda5b248b 100644 --- a/engines/teenagent/teenagent.cpp +++ b/engines/teenagent/teenagent.cpp @@ -313,7 +313,10 @@ Common::Error TeenAgentEngine::run() { Common::EventManager *_event = _system->getEventManager(); initGraphics(320, 200, false); - if (!showLogo("unlogic.res")) + + int load_slot = Common::ConfigManager::instance().getInt("save_slot"); + + if (load_slot < 0 && !showLogo("unlogic.res")) return Common::kNoError; scene = new Scene; @@ -334,16 +337,12 @@ Common::Error TeenAgentEngine::run() { _mixer->playInputStream(Audio::Mixer::kMusicSoundType, &_musicHandle, music, -1, 255, 0, true, false); music->start(); - { - int load_slot = Common::ConfigManager::instance().getInt("save_slot"); - debug(0, "slot: %d", load_slot); - if (load_slot >= 0) { - loadGameState(load_slot); - } else { - scene->intro = true; - scene_busy = true; - processCallback(0x24c); - } + if (load_slot >= 0) { + loadGameState(load_slot); + } else { + scene->intro = true; + scene_busy = true; + processCallback(0x24c); } uint32 frame = 0; -- cgit v1.2.3