summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-02-06 02:56:48 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-02-06 02:56:48 +0000
commite2c61ef8ec4f8685c0eafa2284c7485cec489021 (patch)
treecf2805221603b14e679205845fa0734702a8aae2 /src/gui/gui.cpp
parent2a7690e2687a43fdc0004684b7de97b2d84cb8b0 (diff)
downloadmana-e2c61ef8ec4f8685c0eafa2284c7485cec489021.tar.gz
mana-e2c61ef8ec4f8685c0eafa2284c7485cec489021.tar.bz2
mana-e2c61ef8ec4f8685c0eafa2284c7485cec489021.tar.xz
mana-e2c61ef8ec4f8685c0eafa2284c7485cec489021.zip
Added a FloorItemManager class.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 3d8d8a98..0017e23a 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -43,7 +43,7 @@
#include "../configlistener.h"
#include "../configuration.h"
#include "../engine.h"
-#include "../floor_item.h"
+#include "../flooritemmanager.h"
#include "../graphics.h"
#include "../localplayer.h"
#include "../log.h"
@@ -265,7 +265,7 @@ Gui::mousePress(int mx, int my, int button)
showPopup(mx, my, being);
return;
}
- else if((floorItem = find_floor_item_by_cor(tilex, tiley)))
+ else if((floorItem = floorItemManager->findByCoordinates(tilex, tiley)))
{
showPopup(mx, my, floorItem);
return;
@@ -308,7 +308,7 @@ Gui::mousePress(int mx, int my, int button)
}
}
// Pick up some item
- else if ((item = find_floor_item_by_cor(tilex, tiley)))
+ else if ((item = floorItemManager->findByCoordinates(tilex, tiley)))
{
player_node->pickUp(item);
}