aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2009-06-06 17:46:55 +0000
committerEugene Sandulenko2009-06-06 17:46:55 +0000
commit8792628a465b56c1a11e24867c5a6979a0c7cc1f (patch)
tree884304105f767f8fe0f5ec289952a462053b7ff2
parent9ff714a2dbe951f7866614806fc9d5e217afb2df (diff)
downloadscummvm-rg350-8792628a465b56c1a11e24867c5a6979a0c7cc1f.tar.gz
scummvm-rg350-8792628a465b56c1a11e24867c5a6979a0c7cc1f.tar.bz2
scummvm-rg350-8792628a465b56c1a11e24867c5a6979a0c7cc1f.zip
Implement hide.mouse and show.mouse opcodes
svn-id: r41257
-rw-r--r--engines/agi/op_cmd.cpp24
1 files changed, 11 insertions, 13 deletions
diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp
index eccd96142d..8cd5a0d9ab 100644
--- a/engines/agi/op_cmd.cpp
+++ b/engines/agi/op_cmd.cpp
@@ -646,18 +646,16 @@ cmd(discard_sound) {
}
cmd(hide_mouse) {
- report("hide.mouse\n");
-
- 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;
- }
+ // 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(allow_menu) {
}
cmd(show_mouse) {
- report("show.mouse\n");
+ g_system->showMouse(true);
}
cmd(fence_mouse) {