Ticket #8627: inventory_cursor_final.patch

File inventory_cursor_final.patch, 725 bytes (added by jvprat, 17 years ago)

Updated patch: Now it really works in LINC

  • engines/sky/logic.cpp

     
    12101210        _compact = scriptComp;
    12111211        uint16 retVal = script((uint16)(scrNum & 0xFFFF), (uint16)(scrNum >> 16));
    12121212        _compact = tmpComp;
     1213
     1214        if (scrNum == MENU_SELECT || (scrNum >= LINC_MENU_SELECT && scrNum <= DOC_MENU_SELECT)) {
     1215                // The user has clicked on an inventory item.  We update the
     1216                // mouse cursor instead of waiting for the script to update it.
     1217                // In the original game the cursor is just updated when the mouse
     1218                // moves away the item, but it's unintuitive.
     1219                fnCrossMouse(0, 0, 0);
     1220        }
     1221
    12131222        return retVal;
    12141223}
    12151224