From 41ee6937108801b5212e3eba67fd2f199107246a Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 25 Aug 2007 12:38:35 +0000 Subject: Inventory arrows scroll the inventory correctly now svn-id: r28719 --- engines/saga/interface.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp index 96740930cc..307ab8ad04 100644 --- a/engines/saga/interface.cpp +++ b/engines/saga/interface.cpp @@ -1931,11 +1931,14 @@ void Interface::handleMainUpdate(const Point& mousePoint) { //inventory stuff void Interface::inventoryChangePos(int chg) { - if ((chg < 0 && _inventoryStart + chg >= 0) || - (chg > 0 && _inventoryStart < _inventoryEnd)) { - _inventoryStart += chg; - draw(); + // Arrows will scroll the inventory up or down up to 4 items + for (int i = 1; i <= 4; i++) { + if ((chg < 0 && _inventoryStart + chg >= 0) || + (chg > 0 && _inventoryStart < _inventoryEnd)) { + _inventoryStart += chg; } + } + draw(); } void Interface::inventorySetPos(int key) { -- cgit v1.2.3