diff options
author | Willem Jan Palenstijn | 2010-10-08 18:33:54 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2010-10-08 18:33:54 +0000 |
commit | 28ade1826a8294aeabc21f3e2d5be8e02471f8eb (patch) | |
tree | b9f1b9600110ee34f38ef3c38f454dfaabc0556b | |
parent | 47eb6ec1677b404882b2201ebaee1e6a19b485fc (diff) | |
download | scummvm-rg350-28ade1826a8294aeabc21f3e2d5be8e02471f8eb.tar.gz scummvm-rg350-28ade1826a8294aeabc21f3e2d5be8e02471f8eb.tar.bz2 scummvm-rg350-28ade1826a8294aeabc21f3e2d5be8e02471f8eb.zip |
SCI: Support kGetTime modes 2 and 3 in SCI 0_LATE
This fixes bug #3083879 in Iceman.
svn-id: r53077
-rw-r--r-- | engines/sci/engine/kmisc.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/engine/kmisc.cpp b/engines/sci/engine/kmisc.cpp index 9e9b4dc103..d8ae1a3418 100644 --- a/engines/sci/engine/kmisc.cpp +++ b/engines/sci/engine/kmisc.cpp @@ -188,7 +188,9 @@ reg_t kGetTime(EngineState *s, int argc, reg_t *argv) { int mode = (argc > 0) ? argv[0].toUint16() : 0; - if (getSciVersion() <= SCI_VERSION_0_LATE && mode > 1) + // Modes 2 and 3 are supported since 0.629. + // This condition doesn't check that exactly, but close enough. + if (getSciVersion() == SCI_VERSION_0_EARLY && mode > 1) error("kGetTime called in SCI0 with mode %d (expected 0 or 1)", mode); switch (mode) { |