summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-07-23 13:30:43 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-07-23 13:30:43 +0000
commit2aa377c9f3c5a1a6079be6c91a14777a357e270a (patch)
treeba308874148089e319f2ca796964d089d9beb344 /src/gui/gui.cpp
parenta9f0bca7aab054aae146a4044a4a904d0c54020b (diff)
downloadmana-2aa377c9f3c5a1a6079be6c91a14777a357e270a.tar.gz
mana-2aa377c9f3c5a1a6079be6c91a14777a357e270a.tar.bz2
mana-2aa377c9f3c5a1a6079be6c91a14777a357e270a.tar.xz
mana-2aa377c9f3c5a1a6079be6c91a14777a357e270a.zip
Removed knowledge about the engine and maps from the being class..
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index cf98dde9..c93061a2 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -235,7 +235,9 @@ void Gui::mousePress(int mx, int my, int button)
if (state == GAME && tiledMap->getWalk(tilex, tiley)) {
walk(tilex, tiley, 0);
- player_node->setDestination(tilex, tiley);
+ player_node->setPath(tiledMap->findPath(
+ player_node->x, player_node->y,
+ tilex, tiley));
autoTarget = NULL;
}