diff options
author | Joost Peters | 2003-11-02 21:37:20 +0000 |
---|---|---|
committer | Joost Peters | 2003-11-02 21:37:20 +0000 |
commit | 17db9a91f38fc38e70b4e3b3707df604d6ff5eb7 (patch) | |
tree | 88032fe659c87cd11c2db00cdb3cbc2c4062a113 /queen | |
parent | 495bba6751d4846e8b8ce1a254e8ad530befca33 (diff) | |
download | scummvm-rg350-17db9a91f38fc38e70b4e3b3707df604d6ff5eb7.tar.gz scummvm-rg350-17db9a91f38fc38e70b4e3b3707df604d6ff5eb7.tar.bz2 scummvm-rg350-17db9a91f38fc38e70b4e3b3707df604d6ff5eb7.zip |
change inventory browsing to match original
svn-id: r11065
Diffstat (limited to 'queen')
-rw-r--r-- | queen/logic.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/queen/logic.cpp b/queen/logic.cpp index e2ded62ef5..346a418fed 100644 --- a/queen/logic.cpp +++ b/queen/logic.cpp @@ -2116,13 +2116,13 @@ void Logic::inventoryScroll(uint16 count, bool up) { return; if (up) { - for (int i = 0; i < 3; i++) - _inventoryItem[i] = _inventoryItem[i + 1]; - _inventoryItem[3] = nextInventoryItem(_inventoryItem[3]); - } else { for (int i = 3; i > 0; i--) _inventoryItem[i] = _inventoryItem[i - 1]; _inventoryItem[0] = previousInventoryItem(_inventoryItem[0]); + } else { + for (int i = 0; i < 3; i++) + _inventoryItem[i] = _inventoryItem[i + 1]; + _inventoryItem[3] = nextInventoryItem(_inventoryItem[3]); } inventoryRefresh(); |