diff options
-rw-r--r-- | engines/agi/op_cmd.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp index 11f7421d2a..cea1850ff5 100644 --- a/engines/agi/op_cmd.cpp +++ b/engines/agi/op_cmd.cpp @@ -561,6 +561,17 @@ 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; + } } cmd(allow_menu) { |