diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-07-23 13:30:43 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-07-23 13:30:43 +0000 |
commit | 2aa377c9f3c5a1a6079be6c91a14777a357e270a (patch) | |
tree | ba308874148089e319f2ca796964d089d9beb344 /src/gui | |
parent | a9f0bca7aab054aae146a4044a4a904d0c54020b (diff) | |
download | mana-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')
-rw-r--r-- | src/gui/gui.cpp | 4 |
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; } |