diff options
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index cb6d3615..81c07375 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -353,8 +353,11 @@ void do_input() } else if (event.button.button == 1) { - // Experimental mouse walk command + // Experimental mouse walk support walk(mx, my, 0); + player_node->setPath(tiledMap->findPath( + player_node->x, player_node->y, + mx, my)); } } |