[Scummvm-cvs-logs] CVS: scummvm/scumm script_v2.cpp,2.41,2.42
James Brown
ender at users.sourceforge.net
Sat May 3 21:35:55 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv1786/scumm
Modified Files:
script_v2.cpp
Log Message:
Some V2 stuff
Index: script_v2.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v2.cpp,v
retrieving revision 2.41
retrieving revision 2.42
diff -u -d -r2.41 -r2.42
--- script_v2.cpp 4 May 2003 02:39:59 -0000 2.41
+++ script_v2.cpp 4 May 2003 04:30:49 -0000 2.42
@@ -1181,8 +1181,26 @@
}
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() {
More information about the Scummvm-git-logs
mailing list