diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-03-26 14:42:27 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-03-26 14:42:27 +0000 |
commit | a736e518012b003db5fb56ac8310c9fcd00a5c51 (patch) | |
tree | 4ff2ac428fe48c16e34c9e15fba61059993d5f8f | |
parent | b40bfe580d2dc9038c00521a44fcd6edd352f239 (diff) | |
download | mana-client-a736e518012b003db5fb56ac8310c9fcd00a5c51.tar.gz mana-client-a736e518012b003db5fb56ac8310c9fcd00a5c51.tar.bz2 mana-client-a736e518012b003db5fb56ac8310c9fcd00a5c51.tar.xz mana-client-a736e518012b003db5fb56ac8310c9fcd00a5c51.zip |
Fix mouse walk to send the correct pair of coordinates to the server.
-rw-r--r-- | src/gui/gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 99514e9e..899ae374 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -95,7 +95,7 @@ void Gui::mousePress(int mx, int my, int button) // Experimental mouse walk support if (state == GAME) { - walk(mx, my, 0); + walk(tilex, tiley, 0); player_node->setPath(tiledMap->findPath( player_node->x, player_node->y, tilex, tiley)); |