diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-02-05 04:18:35 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-02-05 04:18:35 +0000 |
commit | 3c8a29048703a6f830061c8bd0965adde4adb706 (patch) | |
tree | d860fdb3cd2924c343f34ca988ec01776284c0b3 /src/gui | |
parent | cfc9ed654330452405cf4a107ec55e3bfa6137b0 (diff) | |
download | mana-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')
-rw-r--r-- | src/gui/gui.cpp | 4 |
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 |