From 8861b0b583f1cd56ff5e8f7a8b408f696c85f545 Mon Sep 17 00:00:00 2001 From: uruk Date: Tue, 15 Jul 2014 14:41:46 +0200 Subject: CGE2: Get rid of _mode. --- engines/cge2/cge2.cpp | 1 - engines/cge2/cge2.h | 1 - engines/cge2/cge2_main.cpp | 6 +----- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/engines/cge2/cge2.cpp b/engines/cge2/cge2.cpp index 1fb880c4df..b820ba53a7 100644 --- a/engines/cge2/cge2.cpp +++ b/engines/cge2/cge2.cpp @@ -74,7 +74,6 @@ CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription) _quitFlag = false; _bitmapPalette = nullptr; - _mode = 0; _music = true; _startupMode = 1; _now = 1; diff --git a/engines/cge2/cge2.h b/engines/cge2/cge2.h index 252fad07bd..d97ba3d675 100644 --- a/engines/cge2/cge2.h +++ b/engines/cge2/cge2.h @@ -263,7 +263,6 @@ public: bool _quitFlag; Dac *_bitmapPalette; - int _mode; bool _music; int _startupMode; int _now; diff --git a/engines/cge2/cge2_main.cpp b/engines/cge2/cge2_main.cpp index 0e2e702288..29592d73f1 100644 --- a/engines/cge2/cge2_main.cpp +++ b/engines/cge2/cge2_main.cpp @@ -836,14 +836,12 @@ void CGE2Engine::cge2_main() { if (_startGameSlot != -1) { // Starting up a savegame from the launcher - _mode++; runGame(); } if (showTitle("WELCOME")) { #if 0 - if (_mode == 1) - movie(kIntroExt); + movie(kIntroExt); #endif if (_text->getText(255) != nullptr) { runGame(); @@ -891,8 +889,6 @@ int CGE2Engine::newRandom(int range) { bool CGE2Engine::showTitle(const char *name) { if (_quitFlag) return false; - - _mode++; _bitmapPalette = _vga->_sysPal; BitmapPtr LB = new Bitmap[1]; -- cgit v1.2.3