diff options
author | Kari Salminen | 2008-01-10 12:02:03 +0000 |
---|---|---|
committer | Kari Salminen | 2008-01-10 12:02:03 +0000 |
commit | 6b372d97ee0ba2b3f5aa154599d167edd6b087b8 (patch) | |
tree | 9aef2c665cb0afc98d2a8db2f0ad8f34e3126f78 /engines/agi/keyboard.cpp | |
parent | 0ec8d35e4da14d6af53ead8001063b6ecf5f0fc5 (diff) | |
download | scummvm-rg350-6b372d97ee0ba2b3f5aa154599d167edd6b087b8.tar.gz scummvm-rg350-6b372d97ee0ba2b3f5aa154599d167edd6b087b8.tar.bz2 scummvm-rg350-6b372d97ee0ba2b3f5aa154599d167edd6b087b8.zip |
Disable moving using mouse in mines (Rooms 147-162) and 'adj.ego.move.to.x.y'-command (Which uses 2 arguments) in Amiga's Gold Rush. This temporary hack fixes bug #1733297 (GR: Actor stuck (Amiga version)).
svn-id: r30375
Diffstat (limited to 'engines/agi/keyboard.cpp')
-rw-r--r-- | engines/agi/keyboard.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp index c4532941d6..78054e84b4 100644 --- a/engines/agi/keyboard.cpp +++ b/engines/agi/keyboard.cpp @@ -180,10 +180,18 @@ int AgiEngine::handleController(int key) { if (!(getFeatures() & GF_AGIMOUSE)) { /* Handle mouse button events */ if (key == BUTTON_LEFT) { - v->flags |= ADJ_EGO_XY; - v->parm1 = WIN_TO_PIC_X(g_mouse.x); - v->parm2 = WIN_TO_PIC_Y(g_mouse.y); - return true; + // FIXME: Implement adj.ego.move.to.x.y-command properly (With 2 arguments) and remove this hack. + // This is a hack for preventing mouse usage in the mines (Rooms 147-162) in Amiga Gold Rush as + // moving with mouse bugs in the mines because adj.ego.move.to.x.y isn't properly implemented yet. + if (getGameID() == GID_GOLDRUSH && getPlatform() == Common::kPlatformAmiga && _game.vars[0] >= 147 && _game.vars[0] <= 162) { + messageBox("Use yer arrow keys ta walk."); + return true; + } else { + v->flags |= ADJ_EGO_XY; + v->parm1 = WIN_TO_PIC_X(g_mouse.x); + v->parm2 = WIN_TO_PIC_Y(g_mouse.y); + return true; + } } } |