summaryrefslogtreecommitdiff
path: root/src/floor_item.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2006-08-17 19:11:28 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2006-08-17 19:11:28 +0000
commit19ce91290d85620ee464e85c617575986cd34aec (patch)
treeadc7aa4b36553510485cb1197e76108326401b9d /src/floor_item.cpp
parentece19f6d44e2604f1d2fee9e0ece02030105e0d4 (diff)
downloadmana-client-19ce91290d85620ee464e85c617575986cd34aec.tar.gz
mana-client-19ce91290d85620ee464e85c617575986cd34aec.tar.bz2
mana-client-19ce91290d85620ee464e85c617575986cd34aec.tar.xz
mana-client-19ce91290d85620ee464e85c617575986cd34aec.zip
the item icons are now stored in different files with more descriptive names
Diffstat (limited to 'src/floor_item.cpp')
-rw-r--r--src/floor_item.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/floor_item.cpp b/src/floor_item.cpp
index 1581b201..edd5d4a7 100644
--- a/src/floor_item.cpp
+++ b/src/floor_item.cpp
@@ -29,7 +29,6 @@
#include "resources/iteminfo.h"
#include "resources/spriteset.h"
-extern Spriteset *itemset;
FloorItem::FloorItem(unsigned int id,
unsigned int itemId,
@@ -42,8 +41,8 @@ FloorItem::FloorItem(unsigned int id,
mY(y),
mMap(map)
{
- // Retrieve item image using a global itemset and itemDb (alternative?)
- mImage = itemset->get(itemDb->getItemInfo(itemId)->getImage() - 1);
+ // Retrieve item image from item info
+ mImage = itemDb->getItemInfo(itemId)->getImage();
// Add ourselves to the map
mSpriteIterator = mMap->addSprite(this);