[Scummvm-cvs-logs] SF.net SVN: scummvm: [26288] scummvm/trunk/engines/scumm/verbs.cpp
kirben at users.sourceforge.net
kirben at users.sourceforge.net
Sat Mar 24 01:21:48 CET 2007
Revision: 26288
http://scummvm.svn.sourceforge.net/scummvm/?rev=26288&view=rev
Author: kirben
Date: 2007-03-23 17:21:47 -0700 (Fri, 23 Mar 2007)
Log Message:
-----------
Add patch #1687013 - Zak FM-Towns: F1-F4 person switching.
Modified Paths:
--------------
scummvm/trunk/engines/scumm/verbs.cpp
Modified: scummvm/trunk/engines/scumm/verbs.cpp
===================================================================
--- scummvm/trunk/engines/scumm/verbs.cpp 2007-03-24 00:12:28 UTC (rev 26287)
+++ scummvm/trunk/engines/scumm/verbs.cpp 2007-03-24 00:21:47 UTC (rev 26288)
@@ -567,6 +567,23 @@
}
}
+ if ((_game.platform == Common::kPlatformFMTowns && _game.id == GID_ZAK) &&
+ (_mouseAndKeyboardStat >= 315 && _mouseAndKeyboardStat <= 318)) {
+ // Hack: Handle switching to a person via F1-F4 keys.
+ // This feature isn't available in the scripts of the FM-TOWNS verison.
+ int fKey = _mouseAndKeyboardStat - 314;
+ int switchSlot = getVerbSlot(36, 0);
+ // check if switch-verb is enabled
+ if (_verbs[switchSlot].curmode == 1) {
+ // Check if person is available (see script 23 from ZAK_FM-TOWNS and script 4 from ZAK_PC).
+ // Zak: Var[144 Bit 15], Annie: Var[145 Bit 0], Melissa: Var[145 Bit 1], Leslie: Var[145 Bit 2]
+ if (!readVar(0x890E + fKey)) {
+ runInputScript(1, 36 + fKey, 0);
+ }
+ }
+ return;
+ }
+
// Generic keyboard input
runInputScript(4, _mouseAndKeyboardStat, 1);
} else if (_mouseAndKeyboardStat & MBS_MOUSE_MASK) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list