summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-02-07 09:09:39 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-02-07 09:09:39 +0000
commitbcecffd8505d2c1dd48a0e69b853a7279e33592c (patch)
treed7a68b147adb4d00f4a6b3f3a67fcf0695010d67 /src/gui
parent8b673b9baf809126fb7897dbb1c4e2453aa1ec7d (diff)
downloadmana-bcecffd8505d2c1dd48a0e69b853a7279e33592c.tar.gz
mana-bcecffd8505d2c1dd48a0e69b853a7279e33592c.tar.bz2
mana-bcecffd8505d2c1dd48a0e69b853a7279e33592c.tar.xz
mana-bcecffd8505d2c1dd48a0e69b853a7279e33592c.zip
Cleaning and preparing to add equipment
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/itemcontainer.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp
index 07bc401d..123270c2 100644
--- a/src/gui/itemcontainer.cpp
+++ b/src/gui/itemcontainer.cpp
@@ -28,8 +28,8 @@
ItemContainer::ItemContainer()
{
ResourceManager *resman = ResourceManager::getInstance();
- Image *itemImg = resman->getImage("graphic/items.bmp");
- if (!itemImg) error("Unable to load items.bmp");
+ Image *itemImg = resman->getImage("core/graphics/sprites/items.png");
+ if (!itemImg) error("Unable to load items.png");
itemset = new Spriteset(itemImg, 20, 20);
selectedItem = -1; /**< No item selected */
@@ -58,9 +58,10 @@ void ItemContainer::draw(gcn::Graphics* graphics)
for (int i = 0; i < INVENTORY_SIZE; i++) {
if (items[i].quantity > 0) {
- if (items[i].id >= 501 && items[i].id <= 511) {
+ if (items[i].id >= 501 && items[i].id <= 2301) {
itemset->spriteset[items[i].id - 501]->draw(screen,
x + 24 * i, y + 2);
+
}
std::stringstream ss;