summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-08 01:46:03 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-08 01:46:03 +0000
commitdaa73fee2b89f16c42a05a7ab081699e024fab23 (patch)
tree06971d9b38d44e8fb6695f41b5e061580b054c33 /src/gui/gui.cpp
parente32395931f516de22e064459fa6f58a3e583acdf (diff)
downloadmana-client-daa73fee2b89f16c42a05a7ab081699e024fab23.tar.gz
mana-client-daa73fee2b89f16c42a05a7ab081699e024fab23.tar.bz2
mana-client-daa73fee2b89f16c42a05a7ab081699e024fab23.tar.xz
mana-client-daa73fee2b89f16c42a05a7ab081699e024fab23.zip
Let the LocalPlayer decide whether it can walk to a destination.
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 b52ff8e8..af9a1281 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -48,7 +48,6 @@
#include "../localplayer.h"
#include "../log.h"
#include "../main.h"
-#include "../map.h"
#include "../npc.h"
#include "../resources/image.h"
@@ -257,7 +256,8 @@ Gui::mousePress(int mx, int my, int button)
Being *being;
FloorItem *floorItem;
- if ((being = beingManager->findBeing(tilex, tiley)) && being->getType() != Being::LOCALPLAYER)
+ if ((being = beingManager->findBeing(tilex, tiley))
+ && being->getType() != Being::LOCALPLAYER)
{
showPopup(mx, my, being);
return;
@@ -310,7 +310,7 @@ Gui::mousePress(int mx, int my, int button)
player_node->pickUp(item);
}
// Just walk around
- else if (engine->getCurrentMap()->getWalk(tilex, tiley))
+ else
{
// XXX XXX XXX REALLY UGLY!
Uint8 *keys = SDL_GetKeyState(NULL);