summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 1dd7c752..4d934504 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -65,6 +65,7 @@ gcn::Label *debugInfo;
std::map<int, Spriteset*> monsterset;
ItemManager *itemDb; /**< Item database object */
+Spriteset *itemset;
char hairtable[16][4][2] = {
// S(x,y) W(x,y) N(x,y) E(x,y)
@@ -294,20 +295,6 @@ void Engine::draw()
mCurrentMap->draw(graphics, map_x, map_y, 1);
}
- // Draw items
- for (std::list<FloorItem*>::iterator i = floorItems.begin(); i != floorItems.end(); i++)
- {
- FloorItem *floorItem = (*i);
- if (itemDb->getItemInfo(floorItem->getItemId())->getImage() > 0) {
- Image *image = itemset->spriteset[itemDb->getItemInfo(
- floorItem->getItemId())->getImage() - 1];
-
- graphics->drawImage(image,
- floorItem->getX() * 32 - map_x,
- floorItem->getY() * 32 - map_y);
- }
- }
-
// Draw nodes
for (std::list<Being*>::iterator i = beings.begin(); i != beings.end(); i++)
{