diff options
Diffstat (limited to 'src/behaviour_system.cpp')
-rw-r--r-- | src/behaviour_system.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/behaviour_system.cpp b/src/behaviour_system.cpp index f4f7546..ce980f6 100644 --- a/src/behaviour_system.cpp +++ b/src/behaviour_system.cpp | |||
@@ -196,7 +196,7 @@ void BehaviourSystem::createPath(int spriteId) { | |||
196 | } | 196 | } |
197 | 197 | ||
198 | CollisionResult collision = game_.getSystem<TransformSystem>().checkCollision(spriteId, searchNode.point, newPos, dir); | 198 | CollisionResult collision = game_.getSystem<TransformSystem>().checkCollision(spriteId, searchNode.point, newPos, dir); |
199 | if (collision.horiz.blocked || collision.vert.blocked) { | 199 | if (collision.blocked) { |
200 | // There isn't actually an edge to this neighbor. | 200 | // There isn't actually an edge to this neighbor. |
201 | continue; | 201 | continue; |
202 | } | 202 | } |