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

svn-id: r30085
This commit is contained in:
Max Horn 2007-12-30 17:58:22 +00:00
parent 22cfa56606
commit 3d46219592

View File

@ -1213,6 +1213,16 @@ uint16 Logic::mouseScript(uint32 scrNum, Compact *scriptComp) {
_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;
}