From 8792628a465b56c1a11e24867c5a6979a0c7cc1f Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 6 Jun 2009 17:46:55 +0000 Subject: Implement hide.mouse and show.mouse opcodes svn-id: r41257 --- engines/agi/op_cmd.cpp | 24 +++++++++++------------- 1 file 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) { -- cgit v1.2.3