summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-21 03:23:28 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-21 03:23:28 +0300
commit54f8367afe9d30c21bcda057872439199c7dd9c1 (patch)
tree63d0f02eca1cfd643e4a394c7999c9c172839086 /src/gui/viewport.cpp
parent61350cc4f65d53dd3add0c15558f6017b18ddbea (diff)
downloadmv-54f8367afe9d30c21bcda057872439199c7dd9c1.tar.gz
mv-54f8367afe9d30c21bcda057872439199c7dd9c1.tar.bz2
mv-54f8367afe9d30c21bcda057872439199c7dd9c1.tar.xz
mv-54f8367afe9d30c21bcda057872439199c7dd9c1.zip
Fix player build path in special collisions.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 1053fa1c9..1f2d06894 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -306,7 +306,7 @@ void Viewport::_drawDebugPath(Graphics *graphics)
debugPath = mMap->findPath(
static_cast<int>(playerPos.x - 16) / 32,
static_cast<int>(playerPos.y - 32) / 32,
- mousePosX / 32, mousePosY / 32, 0, 500);
+ mousePosX / 32, mousePosY / 32, player_node->getWalkMask(), 500);
lastMouseDestination = mouseDestination;
}