diff options
author | Jan-Fabian Humann <malastare@gmx.net> | 2005-05-11 14:24:29 +0000 |
---|---|---|
committer | Jan-Fabian Humann <malastare@gmx.net> | 2005-05-11 14:24:29 +0000 |
commit | 732f50f7408a76e108d0af14aa3aaaa81391b1a9 (patch) | |
tree | 76a73e61cc7e9c8680e8aababde8c884f829cacd /src | |
parent | 34a718bbd2573477cb600cfa422c5669b1b9d6b2 (diff) | |
download | mana-client-732f50f7408a76e108d0af14aa3aaaa81391b1a9.tar.gz mana-client-732f50f7408a76e108d0af14aa3aaaa81391b1a9.tar.bz2 mana-client-732f50f7408a76e108d0af14aa3aaaa81391b1a9.tar.xz mana-client-732f50f7408a76e108d0af14aa3aaaa81391b1a9.zip |
first two trade items work again (itemcontainer slots 0 and 1 seem to be reserved)
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/itemcontainer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp index 67bae9b0..05a1f4de 100644 --- a/src/gui/itemcontainer.cpp +++ b/src/gui/itemcontainer.cpp @@ -77,7 +77,6 @@ void ItemContainer::draw(gcn::Graphics* graphics) int itemX = ((i - 2) % itemWidth) * 24; int itemY = ((i - 2) / itemWidth) * 24; - itemX -= itemX % 24; if (items[i].quantity > 0) { if (itemDb->getItemInfo(items[i].id)->getImage() > 0) { @@ -154,7 +153,7 @@ void ItemContainer::addItem(int index, int id, int quantity, bool equipment) int ItemContainer::getFreeSlot() { - for (int i = 0; i < INVENTORY_SIZE; i++) { + for (int i = 2; i < INVENTORY_SIZE; i++) { if (items[i].id == -1) { return i; } @@ -233,4 +232,3 @@ int ItemContainer::getNumberOfSlotsUsed() return NumberOfFilledSlot; } - |