Ticket #8627: inventory_cursor.patch

File inventory_cursor.patch, 703 bytes (added by jvprat, 17 years ago)

Update the mouse cursor when changing selection in inventory

  • engines/sky/logic.cpp

     
    12071207        _compact = scriptComp;
    12081208        uint16 retVal = script((uint16)(scrNum & 0xFFFF), (uint16)(scrNum >> 16));
    12091209        _compact = tmpComp;
     1210
     1211        if (scrNum == MENU_SELECT && _scriptVariables[BUTTON] == 1) {
     1212                // The user has right-clicked on an inventory item.  We update the
     1213                // mouse cursor instead of waiting for the script to update it.
     1214                // In the original game the cursor is just updated when the mouse
     1215                // moves away the item, but it's unintuitive.
     1216                fnCrossMouse(0, 0, 0);
     1217        }
     1218
    12101219        return retVal;
    12111220}
    12121221