aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2010-10-08 18:33:54 +0000
committerWillem Jan Palenstijn2010-10-08 18:33:54 +0000
commit28ade1826a8294aeabc21f3e2d5be8e02471f8eb (patch)
treeb9f1b9600110ee34f38ef3c38f454dfaabc0556b
parent47eb6ec1677b404882b2201ebaee1e6a19b485fc (diff)
downloadscummvm-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.cpp4
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) {