summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/object.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/object.cpp b/src/object.cpp
index 6f4c7ac6..f48d54f4 100644
--- a/src/object.cpp
+++ b/src/object.cpp
@@ -41,6 +41,7 @@ void MovingObject::move()
int tileDX = mDst.x / 32, tileDY = mDst.y / 32;
if (tileSX != tileDX || tileSY != tileDY)
{
+ // TODO: cache pathfinding results
path = map->findPath(tileSX, tileSY, tileDX, tileDY);
if (path.empty()) {
// no path was found