diff options
author | Kari Salminen | 2008-01-05 20:52:30 +0000 |
---|---|---|
committer | Kari Salminen | 2008-01-05 20:52:30 +0000 |
commit | 5f7a037bda006d4573961879ea614a488edda764 (patch) | |
tree | 847c8846285fef5f5ac4383bfbbd80967c404ee6 /engines | |
parent | 077026e088f7805304b9bd1d5a69b3f743f19145 (diff) | |
download | scummvm-rg350-5f7a037bda006d4573961879ea614a488edda764.tar.gz scummvm-rg350-5f7a037bda006d4573961879ea614a488edda764.tar.bz2 scummvm-rg350-5f7a037bda006d4573961879ea614a488edda764.zip |
Implement a workaround to hide.mouse-command for Amiga's Gold Rush. Fixes walking with mouse in room 192 (The hanging scene i.e. the copy protection failure scene).
svn-id: r30259
Diffstat (limited to 'engines')
-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) { |