summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-07-23 16:29:49 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-07-23 16:29:49 +0000
commit2003fd3534a312128c620e7e36902ac07045516e (patch)
treea98804c83f3d568756344943fbd580531195429b /src/gui
parentb81f47c9b5fa2709af4d6e6e0669c604f3f273b1 (diff)
downloadmana-client-2003fd3534a312128c620e7e36902ac07045516e.tar.gz
mana-client-2003fd3534a312128c620e7e36902ac07045516e.tar.bz2
mana-client-2003fd3534a312128c620e7e36902ac07045516e.tar.xz
mana-client-2003fd3534a312128c620e7e36902ac07045516e.zip
Restored Being::setDestination, a pointer to the current map is now kept as a member in Being.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index c93061a2..cf98dde9 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -235,9 +235,7 @@ void Gui::mousePress(int mx, int my, int button)
if (state == GAME && tiledMap->getWalk(tilex, tiley)) {
walk(tilex, tiley, 0);
- player_node->setPath(tiledMap->findPath(
- player_node->x, player_node->y,
- tilex, tiley));
+ player_node->setDestination(tilex, tiley);
autoTarget = NULL;
}