summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-26 14:42:27 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-26 14:42:27 +0000
commita736e518012b003db5fb56ac8310c9fcd00a5c51 (patch)
tree4ff2ac428fe48c16e34c9e15fba61059993d5f8f /src/gui
parentb40bfe580d2dc9038c00521a44fcd6edd352f239 (diff)
downloadMana-a736e518012b003db5fb56ac8310c9fcd00a5c51.tar.gz
Mana-a736e518012b003db5fb56ac8310c9fcd00a5c51.tar.bz2
Mana-a736e518012b003db5fb56ac8310c9fcd00a5c51.tar.xz
Mana-a736e518012b003db5fb56ac8310c9fcd00a5c51.zip
Fix mouse walk to send the correct pair of coordinates to the server.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui.cpp2
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));