diff options
author | Peter Bozsó | 2014-09-07 10:40:03 +0200 |
---|---|---|
committer | Peter Bozsó | 2014-09-07 10:45:29 +0200 |
commit | da1b76be4d7fd477ba75ca8b04a961d7ab7cd0ef (patch) | |
tree | 98dd4254e25fb4743f865e0533f8b73075ac0c3a /engines/cge2 | |
parent | 261d15d007d83e3087699068e3f46a8f250dd757 (diff) | |
download | scummvm-rg350-da1b76be4d7fd477ba75ca8b04a961d7ab7cd0ef.tar.gz scummvm-rg350-da1b76be4d7fd477ba75ca8b04a961d7ab7cd0ef.tar.bz2 scummvm-rg350-da1b76be4d7fd477ba75ca8b04a961d7ab7cd0ef.zip |
Revert "CGE2: Make the intro skippable."
This reverts commit 5e099e90bcdfb87c289b919ddac60e60fbf6bdd7.
There's no need for this addition, since the intro was skippable before that too, by hitting the ESC key.
See System::touch().
Diffstat (limited to 'engines/cge2')
-rw-r--r-- | engines/cge2/cge2.cpp | 1 | ||||
-rw-r--r-- | engines/cge2/cge2.h | 1 | ||||
-rw-r--r-- | engines/cge2/cge2_main.cpp | 8 | ||||
-rw-r--r-- | engines/cge2/events.cpp | 2 |
4 files changed, 4 insertions, 8 deletions
diff --git a/engines/cge2/cge2.cpp b/engines/cge2/cge2.cpp index 8e70f0e93e..8b51dda75e 100644 --- a/engines/cge2/cge2.cpp +++ b/engines/cge2/cge2.cpp @@ -76,7 +76,6 @@ CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription) _vol[i] = nullptr; _eventManager = nullptr; _map = nullptr; - _skipIntro = false; _quitFlag = false; _bitmapPalette = nullptr; _startupMode = 1; diff --git a/engines/cge2/cge2.h b/engines/cge2/cge2.h index 79cb2064c8..8e94683824 100644 --- a/engines/cge2/cge2.h +++ b/engines/cge2/cge2.h @@ -280,7 +280,6 @@ public: Common::RandomSource _randomSource; - bool _skipIntro; bool _quitFlag; Dac *_bitmapPalette; int _startupMode; diff --git a/engines/cge2/cge2_main.cpp b/engines/cge2/cge2_main.cpp index 3a994dd0f5..c52a354f9e 100644 --- a/engines/cge2/cge2_main.cpp +++ b/engines/cge2/cge2_main.cpp @@ -396,7 +396,7 @@ void CGE2Engine::movie(const char *ext) { sceneUp(_now); _keyboard->setClient(_sys); - while (!_commandHandler->idle() && !_quitFlag && !_skipIntro) + while (!_commandHandler->idle() && !_quitFlag) mainLoop(); _keyboard->setClient(nullptr); @@ -532,11 +532,11 @@ void CGE2Engine::mainLoop() { // Handle a delay between game frames handleFrame(); - // Check shouldQuit() - _quitFlag = shouldQuit(); - // Handle any pending events _eventManager->poll(); + + // Check shouldQuit() + _quitFlag = shouldQuit(); } void CGE2Engine::checkSounds() { diff --git a/engines/cge2/events.cpp b/engines/cge2/events.cpp index 13f6b4dc5d..ed1ec66bb1 100644 --- a/engines/cge2/events.cpp +++ b/engines/cge2/events.cpp @@ -219,8 +219,6 @@ void EventManager::poll() { switch (_event.type) { case Common::EVENT_KEYDOWN: case Common::EVENT_KEYUP: - if (_vm->_startupMode == 1) - _vm->_skipIntro = true; // So the player can interrupt the intro. // Handle keyboard events _vm->_keyboard->newKeyboard(_event); handleEvents(); |