aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorOri Avtalion2016-03-12 21:27:24 +0200
committerOri Avtalion2016-03-12 21:29:10 +0200
commitf35bdb680d6271042757eb69264b2aa76b19afa7 (patch)
tree4f4e98282ffc4ee31b87d5782cde5fb8918de1b5 /engines
parent287391d1d5fa15261c817af567c67296d022cb8f (diff)
downloadscummvm-rg350-f35bdb680d6271042757eb69264b2aa76b19afa7.tar.gz
scummvm-rg350-f35bdb680d6271042757eb69264b2aa76b19afa7.tar.bz2
scummvm-rg350-f35bdb680d6271042757eb69264b2aa76b19afa7.zip
TUCKER: Don't try parsing missing debug values in demo
Fixes the demo thinking it's in debug mode and allowing ESC to quit.
Diffstat (limited to 'engines')
-rw-r--r--engines/tucker/resource.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/tucker/resource.cpp b/engines/tucker/resource.cpp
index 9cba7b523d..d7b75e39c1 100644
--- a/engines/tucker/resource.cpp
+++ b/engines/tucker/resource.cpp
@@ -662,9 +662,11 @@ void TuckerEngine::loadData3() {
void TuckerEngine::loadData4() {
loadFile("data4.c", _loadTempBuf);
DataTokenizer t(_loadTempBuf, _fileLoadSize);
- t.findNextToken(kDataTokenDw);
- _gameDebug = t.getNextInteger() != 0;
- _displayGameHints = t.getNextInteger() != 0;
+ if ((_gameFlags & kGameFlagDemo) == 0) {
+ t.findNextToken(kDataTokenDw);
+ _gameDebug = t.getNextInteger() != 0;
+ _displayGameHints = t.getNextInteger() != 0;
+ }
_locationObjectsCount = 0;
if (t.findIndex(_locationNum)) {
while (t.findNextToken(kDataTokenDw)) {