[Scummvm-cvs-logs] SF.net SVN: scummvm: [30085] scummvm/trunk/engines/sky/logic.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sun Dec 30 18:58:22 CET 2007


Revision: 30085
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30085&view=rev
Author:   fingolfin
Date:     2007-12-30 09:58:22 -0800 (Sun, 30 Dec 2007)

Log Message:
-----------
Patch #1689516: BASS: Update the cursor when right-clicking in inventory

Modified Paths:
--------------
    scummvm/trunk/engines/sky/logic.cpp

Modified: scummvm/trunk/engines/sky/logic.cpp
===================================================================
--- scummvm/trunk/engines/sky/logic.cpp	2007-12-30 17:18:01 UTC (rev 30084)
+++ scummvm/trunk/engines/sky/logic.cpp	2007-12-30 17:58:22 UTC (rev 30085)
@@ -1213,6 +1213,16 @@
 	_compact = scriptComp;
 	uint16 retVal = script((uint16)(scrNum & 0xFFFF), (uint16)(scrNum >> 16));
 	_compact = tmpComp;
+
+	if (scrNum == MENU_SELECT || (scrNum >= LINC_MENU_SELECT && scrNum <= DOC_MENU_SELECT)) {
+		// HACK: See patch #1689516 for details. The short story:
+		// The user has clicked on an inventory item.  We update the
+		// mouse cursor instead of waiting for the script to update it.
+		// In the original game the cursor is just updated when the mouse
+		// moves away the item, but it's unintuitive.
+		fnCrossMouse(0, 0, 0);
+	}
+
 	return retVal;
 }
 


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