aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2010-06-10 18:16:05 +0000
committerMatthew Hoops2010-06-10 18:16:05 +0000
commit8f55c4ddb4ceb64e6121ee9fe08b07c2905d4748 (patch)
treed14f5ab687dfe6715456c66c77dd087463bb796d
parent85b0ec3408ca46251835f9e3db8f2e96cafe60ac (diff)
downloadscummvm-rg350-8f55c4ddb4ceb64e6121ee9fe08b07c2905d4748.tar.gz
scummvm-rg350-8f55c4ddb4ceb64e6121ee9fe08b07c2905d4748.tar.bz2
scummvm-rg350-8f55c4ddb4ceb64e6121ee9fe08b07c2905d4748.zip
Allow for digits in stage directions in SCI32 games: GK1 floppy uses them.
svn-id: r49582
-rw-r--r--engines/sci/engine/message.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/engine/message.cpp b/engines/sci/engine/message.cpp
index 07f8792471..523e8321db 100644
--- a/engines/sci/engine/message.cpp
+++ b/engines/sci/engine/message.cpp
@@ -330,7 +330,8 @@ bool MessageState::stringStage(Common::String &outstr, const Common::String &inS
}
// If we find a lowercase character or a digit, it's not a stage direction
- if (((inStr[i] >= 'a') && (inStr[i] <= 'z')) || ((inStr[i] >= '0') && (inStr[i] <= '9')))
+ // SCI32 seems to support having digits in stage directions
+ if (((inStr[i] >= 'a') && (inStr[i] <= 'z')) || ((inStr[i] >= '0') && (inStr[i] <= '9') && (getSciVersion() < SCI_VERSION_2)))
return false;
}