aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/cge.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2011-08-13 16:44:48 +1000
committerPaul Gilbert2011-08-13 16:44:48 +1000
commitef7a17a64a9d3781108ccdf2c7338b02bf3b3aa6 (patch)
treec8dad847d70facac5b4be15bcbe5b826e716c6db /engines/cge/cge.cpp
parent161a39e9fe0bfdbb1d96a6bb4c88b83d3f073ad0 (diff)
downloadscummvm-rg350-ef7a17a64a9d3781108ccdf2c7338b02bf3b3aa6.tar.gz
scummvm-rg350-ef7a17a64a9d3781108ccdf2c7338b02bf3b3aa6.tar.bz2
scummvm-rg350-ef7a17a64a9d3781108ccdf2c7338b02bf3b3aa6.zip
CGE: Fix for HLINE not being available for demo
The HorizLine class is really only used for on-screen debugging information anyway, so it's not a problem.
Diffstat (limited to 'engines/cge/cge.cpp')
-rw-r--r--engines/cge/cge.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/cge/cge.cpp b/engines/cge/cge.cpp
index cfd941017e..936aeea75a 100644
--- a/engines/cge/cge.cpp
+++ b/engines/cge/cge.cpp
@@ -131,7 +131,7 @@ void CGEEngine::setup() {
_pocLight = new PocLight(this);
for (int i = 0; i < kPocketNX; i++)
_pocket[i] = NULL;
- _horzLine = new HorizLine(this);
+ _horzLine = isDemo() ? NULL : new HorizLine(this);
_infoLine = new InfoLine(this, kInfoW);
_cavLight = new CavLight(this);
_debugLine = new InfoLine(this, kScrWidth);
@@ -247,4 +247,8 @@ bool CGEEngine::canSaveGameStateCurrently() {
return (_startupMode == 0) && _mouse->_active;
}
+bool CGEEngine::isDemo() const {
+ return _gameDescription->flags & ADGF_DEMO;
+}
+
} // End of namespace CGE