aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);