[Scummvm-cvs-logs] SF.net SVN: scummvm:[41257] scummvm/trunk/engines/agi/op_cmd.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Sat Jun 6 19:46:56 CEST 2009
Revision: 41257
http://scummvm.svn.sourceforge.net/scummvm/?rev=41257&view=rev
Author: sev
Date: 2009-06-06 17:46:55 +0000 (Sat, 06 Jun 2009)
Log Message:
-----------
Implement hide.mouse and show.mouse opcodes
Modified Paths:
--------------
scummvm/trunk/engines/agi/op_cmd.cpp
Modified: scummvm/trunk/engines/agi/op_cmd.cpp
===================================================================
--- scummvm/trunk/engines/agi/op_cmd.cpp 2009-06-06 17:46:38 UTC (rev 41256)
+++ scummvm/trunk/engines/agi/op_cmd.cpp 2009-06-06 17:46:55 UTC (rev 41257)
@@ -646,18 +646,16 @@
}
cmd(hide_mouse) {
- report("hide.mouse\n");
+ // WORKAROUND: Turns off current movement that's being caused with the mouse.
+ // This fixes problems with too many popup boxes appearing in the Amiga
+ // Gold Rush's copy protection failure scene (i.e. the hanging scene, logic.192).
+ // Previously multiple popup boxes appeared one after another if you tried
+ // to walk somewhere else than to the right using the mouse.
+ // FIXME: Write a proper implementation using disassembly and
+ // apply it to other games as well if applicable.
+ game.viewTable[0].flags &= ~ADJ_EGO_XY;
- if (g_agi->getPlatform() == Common::kPlatformAmiga && g_agi->getGameID() == GID_GOLDRUSH) {
- // WORKAROUND: Turns off current movement that's being caused with the mouse.
- // This fixes problems with too many popup boxes appearing in the Amiga
- // Gold Rush's copy protection failure scene (i.e. the hanging scene, logic.192).
- // Previously multiple popup boxes appeared one after another if you tried
- // to walk somewhere else than to the right using the mouse.
- // FIXME: Write a proper implementation using disassembly and
- // apply it to other games as well if applicable.
- game.viewTable[0].flags &= ~ADJ_EGO_XY;
- }
+ g_system->showMouse(false);
}
cmd(allow_menu) {
@@ -667,7 +665,7 @@
}
cmd(show_mouse) {
- report("show.mouse\n");
+ g_system->showMouse(true);
}
cmd(fence_mouse) {
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