aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorWalter van Niftrik2017-02-22 23:15:23 +0100
committerWalter van Niftrik2017-02-22 23:17:41 +0100
commit23bc483ab7be8bf0097c77c71d2a811e8e59b3db (patch)
treec1d5ee9681986dba94ade1fdc84e41be0eb0c06e /engines
parent69ae262bf2001c35ad72263ce95177fd98b128e6 (diff)
downloadscummvm-rg350-23bc483ab7be8bf0097c77c71d2a811e8e59b3db.tar.gz
scummvm-rg350-23bc483ab7be8bf0097c77c71d2a811e8e59b3db.tar.bz2
scummvm-rg350-23bc483ab7be8bf0097c77c71d2a811e8e59b3db.zip
ADL: Fix hires6 room description printing
Diffstat (limited to 'engines')
-rw-r--r--engines/adl/hires6.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/adl/hires6.cpp b/engines/adl/hires6.cpp
index 42860badbe..fa243e3c4d 100644
--- a/engines/adl/hires6.cpp
+++ b/engines/adl/hires6.cpp
@@ -453,9 +453,12 @@ void HiRes6Engine::printString(const Common::String &str) {
if (getVar(2) == 0xff) {
if (getVar(26) == 0) {
// This checks for special room description string " "
- if (str.size() != 1 || APPLECHAR(str[0]) != APPLECHAR(' '))
- return AdlEngine_v5::printString(s);
- setVar(2, 160);
+ if (str.size() == 1 && APPLECHAR(str[0]) == APPLECHAR(' ')) {
+ setVar(2, 160);
+ } else {
+ AdlEngine_v5::printString(s);
+ setVar(2, 1);
+ }
} else if (getVar(26) == 0xff) {
// Storing the room number in a variable allows for range comparisons
setVar(26, _state.room);