diff options
author | Torbjörn Andersson | 2003-12-29 15:30:10 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-12-29 15:30:10 +0000 |
commit | ea39ef6d7dbc70198e7312770abe5ffd2000c530 (patch) | |
tree | ad0a826aa5bdcfa082441e69fce79c1021869aae /sword2/sword2.cpp | |
parent | e559a32323b6a3503aa5b2b301303773267e8c7d (diff) | |
download | scummvm-rg350-ea39ef6d7dbc70198e7312770abe5ffd2000c530.tar.gz scummvm-rg350-ea39ef6d7dbc70198e7312770abe5ffd2000c530.tar.bz2 scummvm-rg350-ea39ef6d7dbc70198e7312770abe5ffd2000c530.zip |
The game sets its own DEMO variable, so we might as well check that one as
checking the GF_DEMO flag. (There's still one "unnecessary" reference to
GF_DEMO in functions.cpp, but I plan on rewriting that function soon so I
don't want to touch it right now.)
svn-id: r12009
Diffstat (limited to 'sword2/sword2.cpp')
-rw-r--r-- | sword2/sword2.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sword2/sword2.cpp b/sword2/sword2.cpp index 239ca551dd..b9e1443911 100644 --- a/sword2/sword2.cpp +++ b/sword2/sword2.cpp @@ -247,10 +247,10 @@ int32 Sword2Engine::initialiseGame(void) { initFxQueue(); // all demos (not just web) - if (_features & GF_DEMO) { - // set script variable + if (_features & GF_DEMO) DEMO = 1; - } + else + DEMO = 0; return 0; } @@ -366,7 +366,7 @@ void Sword2Engine::go() { pauseGame(); break; case 'c': - if (!(_features & GF_DEMO)) + if (!DEMO) _logic->fnPlayCredits(NULL); break; #ifdef _SWORD2_DEBUG @@ -420,7 +420,7 @@ void Sword2Engine::startGame(void) { debug(5, "startGame() STARTING:"); // all demos not just web - if (_features & GF_DEMO) + if (DEMO) screen_manager_id = 19; // DOCKS SECTION START else screen_manager_id = 949; // INTRO & PARIS START |