aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v2.cpp
diff options
context:
space:
mode:
authorJames Brown2003-05-04 04:30:49 +0000
committerJames Brown2003-05-04 04:30:49 +0000
commite829d618c81cb59fae50b7a200918ccb8aed6a34 (patch)
treee93e196be939acb4f5ee38f1158ae41f543558f6 /scumm/script_v2.cpp
parent30ebd2d7ffc247f0af432e7e5b129de40d2fd7ec (diff)
downloadscummvm-rg350-e829d618c81cb59fae50b7a200918ccb8aed6a34.tar.gz
scummvm-rg350-e829d618c81cb59fae50b7a200918ccb8aed6a34.tar.bz2
scummvm-rg350-e829d618c81cb59fae50b7a200918ccb8aed6a34.zip
Some V2 stuff
svn-id: r7309
Diffstat (limited to 'scumm/script_v2.cpp')
-rw-r--r--scumm/script_v2.cpp22
1 files changed, 20 insertions, 2 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp
index 1532aa8d8e..e06da3a7b5 100644
--- a/scumm/script_v2.cpp
+++ b/scumm/script_v2.cpp
@@ -1181,8 +1181,26 @@ void Scumm_v2::o2_setObjectName() {
}
void Scumm_v2::o2_cursorCommand() {
- getVarOrDirectWord(0x80);
- warning("TODO: o2_cursorCommand()");
+ int cmd = getVarOrDirectWord(0x80);
+ int a2 = cmd >> 8;
+
+ if (a2 & 4) {Warning("TODO: o2_cursorCommand(userface);} // Toggle verbs on/off, etc
+
+ if (a2 & 1) { // Freeze
+ if (a2 & 8)
+ freezeScripts(0);
+ else
+ unfreezeScripts();
+ }
+
+ if (a2 & 2) { // Cursor Show/Hide
+ if (a2 & 16)
+ _cursor.state = 1;
+ else
+ _cursor.state = 0;
+
+ verbMouseOver(0);
+ }
}
void Scumm_v2::o2_getActorWalkBox() {