aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes
diff options
context:
space:
mode:
authorEugene Sandulenko2016-12-11 16:14:58 +0100
committerEugene Sandulenko2016-12-11 18:36:08 +0100
commit8f4a662b1db79a8e9db70ae4e7f89325afdc409a (patch)
tree770ff083ffabb6764741d7bc30aa2d060ff2fec1 /engines/fullpipe/scenes
parenta95be40dcd809f188750c81c710b087fe3cbc784 (diff)
downloadscummvm-rg350-8f4a662b1db79a8e9db70ae4e7f89325afdc409a.tar.gz
scummvm-rg350-8f4a662b1db79a8e9db70ae4e7f89325afdc409a.tar.bz2
scummvm-rg350-8f4a662b1db79a8e9db70ae4e7f89325afdc409a.zip
FULLPIPE: Simplify demo check in the engine
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r--engines/fullpipe/scenes/scene08.cpp4
-rw-r--r--engines/fullpipe/scenes/scene09.cpp4
2 files changed, 2 insertions, 6 deletions
diff --git a/engines/fullpipe/scenes/scene08.cpp b/engines/fullpipe/scenes/scene08.cpp
index 0c8b68b17e..24b23c1506 100644
--- a/engines/fullpipe/scenes/scene08.cpp
+++ b/engines/fullpipe/scenes/scene08.cpp
@@ -20,8 +20,6 @@
*
*/
-#include "engines/advancedDetector.h"
-
#include "fullpipe/fullpipe.h"
#include "fullpipe/objects.h"
@@ -412,7 +410,7 @@ void sceneHandler08_checkEndArcade() {
if (y < 80) {
sceneHandler08_finishArcade();
- if (g_fp->getFeatures() & ADGF_DEMO && g_fp->getLanguage() == Common::DE_DEU) {
+ if (g_fp->isDemo() && g_fp->getLanguage() == Common::DE_DEU) {
ModalDemo *demo = new ModalDemo;
demo->launch();
diff --git a/engines/fullpipe/scenes/scene09.cpp b/engines/fullpipe/scenes/scene09.cpp
index 8699560d28..169d06c331 100644
--- a/engines/fullpipe/scenes/scene09.cpp
+++ b/engines/fullpipe/scenes/scene09.cpp
@@ -33,8 +33,6 @@
#include "fullpipe/interaction.h"
#include "fullpipe/behavior.h"
-#include "engines/advancedDetector.h"
-
namespace Fullpipe {
struct Hanger {
@@ -465,7 +463,7 @@ int sceneHandler09(ExCommand *cmd) {
break;
case 367:
- if (g_fp->getFeatures() & ADGF_DEMO && g_fp->getLanguage() == Common::RU_RUS) {
+ if (g_fp->isDemo() && g_fp->getLanguage() == Common::RU_RUS) {
g_fp->_needRestart = true;
return 0;
}