From 8f4a662b1db79a8e9db70ae4e7f89325afdc409a Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 11 Dec 2016 16:14:58 +0100 Subject: FULLPIPE: Simplify demo check in the engine --- engines/fullpipe/scenes.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'engines/fullpipe/scenes.cpp') diff --git a/engines/fullpipe/scenes.cpp b/engines/fullpipe/scenes.cpp index c88705b98e..bb141d98c4 100644 --- a/engines/fullpipe/scenes.cpp +++ b/engines/fullpipe/scenes.cpp @@ -35,8 +35,6 @@ #include "fullpipe/scenes.h" #include "fullpipe/interaction.h" -#include "engines/advancedDetector.h" - namespace Fullpipe { Vars::Vars() { @@ -619,7 +617,7 @@ bool FullpipeEngine::sceneSwitcher(EntranceInfo *entrance) { sceneVar = _gameLoader->_gameVar->getSubVarByName("SC_INTRO1"); scene->preloadMovements(sceneVar); - if (!(g_fp->getFeatures() & ADGF_DEMO && g_fp->getLanguage() == Common::RU_RUS)) + if (!(g_fp->isDemo() && g_fp->getLanguage() == Common::RU_RUS)) sceneIntro_initScene(scene); else sceneIntroDemo_initScene(scene); @@ -628,7 +626,7 @@ bool FullpipeEngine::sceneSwitcher(EntranceInfo *entrance) { scene->initObjectCursors("SC_INTRO1"); setSceneMusicParameters(sceneVar); - if (!(g_fp->getFeatures() & ADGF_DEMO && g_fp->getLanguage() == Common::RU_RUS)) { + if (!(g_fp->isDemo() && g_fp->getLanguage() == Common::RU_RUS)) { addMessageHandler(sceneHandlerIntro, 2); _updateCursorCallback = sceneIntro_updateCursor; } else { -- cgit v1.2.3