[Scummvm-cvs-logs] SF.net SVN: scummvm: [30259] scummvm/trunk/engines/agi/op_cmd.cpp

buddha_ at users.sourceforge.net buddha_ at users.sourceforge.net
Sat Jan 5 21:52:30 CET 2008


Revision: 30259
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30259&view=rev
Author:   buddha_
Date:     2008-01-05 12:52:30 -0800 (Sat, 05 Jan 2008)

Log Message:
-----------
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).

Modified Paths:
--------------
    scummvm/trunk/engines/agi/op_cmd.cpp

Modified: scummvm/trunk/engines/agi/op_cmd.cpp
===================================================================
--- scummvm/trunk/engines/agi/op_cmd.cpp	2008-01-05 20:50:10 UTC (rev 30258)
+++ scummvm/trunk/engines/agi/op_cmd.cpp	2008-01-05 20:52:30 UTC (rev 30259)
@@ -561,6 +561,17 @@
 
 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) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list