diff options
author | Paul Gilbert | 2011-08-13 16:44:48 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-08-13 16:44:48 +1000 |
commit | ef7a17a64a9d3781108ccdf2c7338b02bf3b3aa6 (patch) | |
tree | c8dad847d70facac5b4be15bcbe5b826e716c6db /engines/cge/cge.cpp | |
parent | 161a39e9fe0bfdbb1d96a6bb4c88b83d3f073ad0 (diff) | |
download | scummvm-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.cpp | 6 |
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 |