summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-02-05 04:18:35 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-02-05 04:18:35 +0000
commit3c8a29048703a6f830061c8bd0965adde4adb706 (patch)
treed860fdb3cd2924c343f34ca988ec01776284c0b3 /src/gui/gui.cpp
parentcfc9ed654330452405cf4a107ec55e3bfa6137b0 (diff)
downloadmana-client-3c8a29048703a6f830061c8bd0965adde4adb706.tar.gz
mana-client-3c8a29048703a6f830061c8bd0965adde4adb706.tar.bz2
mana-client-3c8a29048703a6f830061c8bd0965adde4adb706.tar.xz
mana-client-3c8a29048703a6f830061c8bd0965adde4adb706.zip
Made the player walk to items prior to picking them up.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 491a4009..3d8d8a98 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -310,10 +310,6 @@ Gui::mousePress(int mx, int my, int button)
// Pick up some item
else if ((item = find_floor_item_by_cor(tilex, tiley)))
{
- int dx = tilex - player_node->x;
- int dy = tiley - player_node->y;
-
- if ((dx * dx + dy * dy) < 4)
player_node->pickUp(item);
}
// Just walk around