aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2016-08-23 01:42:51 +0300
committerFilippos Karapetis2016-08-23 01:48:06 +0300
commitf238ed18ec24debf7f1b8713abf1ce3ebbeeaec3 (patch)
tree9cd852f122aea7e29fa4a7b56e7b0937a42fa2f7
parent0470346ac0988471d36eb4deb3f857f52157c659 (diff)
downloadscummvm-rg350-f238ed18ec24debf7f1b8713abf1ce3ebbeeaec3.tar.gz
scummvm-rg350-f238ed18ec24debf7f1b8713abf1ce3ebbeeaec3.tar.bz2
scummvm-rg350-f238ed18ec24debf7f1b8713abf1ce3ebbeeaec3.zip
SCI: Fix compilation when SCI32 is not enabled
-rw-r--r--engines/sci/engine/kmisc.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/sci/engine/kmisc.cpp b/engines/sci/engine/kmisc.cpp
index 70a1d696e8..f2a3c6b0f7 100644
--- a/engines/sci/engine/kmisc.cpp
+++ b/engines/sci/engine/kmisc.cpp
@@ -514,9 +514,12 @@ reg_t kMacPlatform(EngineState *s, int argc, reg_t *argv) {
// In SCI1, its usage is still unknown
// In SCI1.1, it's NOP
// In SCI32, it's used for remapping cursor ID's
+#ifdef ENABLE_SCI32
if (getSciVersion() >= SCI_VERSION_2_1_EARLY) // Set Mac cursor remap
g_sci->_gfxCursor32->setMacCursorRemapList(argc - 1, argv + 1);
- else if (getSciVersion() != SCI_VERSION_1_1)
+ else
+#endif
+ if (getSciVersion() != SCI_VERSION_1_1)
warning("Unknown SCI1 kMacPlatform(0) call");
break;
case 4: // Handle icon bar code