From 3c8a29048703a6f830061c8bd0965adde4adb706 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Sun, 5 Feb 2006 04:18:35 +0000 Subject: Made the player walk to items prior to picking them up. --- src/gui/gui.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/gui') 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 -- cgit v1.2.3-70-g09d2