diff options
author | Nicola Mettifogo | 2007-05-13 16:25:18 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-05-13 16:25:18 +0000 |
commit | 2a45bcdaaba672167556f81316c1f69b33f9a226 (patch) | |
tree | e4366d465e6260fc3d9e16828ad4d339ed8b3168 /engines | |
parent | b5aa521a75017a34b97a44fc1abae8afeb9f6da5 (diff) | |
download | scummvm-rg350-2a45bcdaaba672167556f81316c1f69b33f9a226.tar.gz scummvm-rg350-2a45bcdaaba672167556f81316c1f69b33f9a226.tar.bz2 scummvm-rg350-2a45bcdaaba672167556f81316c1f69b33f9a226.zip |
Reverted some changes to inventory handling.
svn-id: r26838
Diffstat (limited to 'engines')
-rw-r--r-- | engines/parallaction/inventory.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/parallaction/inventory.cpp b/engines/parallaction/inventory.cpp index 09c49bb20d..39a89db580 100644 --- a/engines/parallaction/inventory.cpp +++ b/engines/parallaction/inventory.cpp @@ -258,13 +258,12 @@ void extractInventoryGraphics(int16 pos, byte *dst) { void jobShowInventory(void *parm, Job *j) { // printf("job_showInventory()..."); - uint16 slots = 0; - while (_inventory[slots]._id != 0) - slots++; + _numInvLines = 0; + while (_inventory[_numInvLines]._id != 0) _numInvLines++; + _numInvLines = (_numInvLines + 4) / INVENTORY_ITEMS_PER_LINE; - uint16 lines = (slots + 4) / INVENTORY_ITEMS_PER_LINE; + Common::Rect r(INVENTORY_WIDTH, _numInvLines * INVENTORYITEM_HEIGHT); - Common::Rect r(INVENTORY_WIDTH, lines * INVENTORYITEM_HEIGHT); r.moveTo(_invPosition); _vm->_gfx->copyRect( |