From 25a2abd09e3b76115ed0b6b1a02cdddc6c1c5bfc Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 10 Mar 2011 18:30:44 +0100 Subject: Fix the pathfinding method to acccept every walkmasks. Previously, the walkmask was hardcoded to handling walls. Trivial. --- src/map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map.cpp') diff --git a/src/map.cpp b/src/map.cpp index de6cf12a..87c902f6 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -831,7 +831,7 @@ Path Map::findPath(int startX, int startY, int destX, int destY, MetaTile *t1 = getMetaTile(curr.x, curr.y + dy); MetaTile *t2 = getMetaTile(curr.x + dx, curr.y); - if ((t1->blockmask | t2->blockmask) & BLOCKMASK_WALL) + if ((t1->blockmask | t2->blockmask) & walkmask) continue; } -- cgit v1.2.3-60-g2f50