summaryrefslogtreecommitdiff
path: root/src/world.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-12 17:12:42 +0100
committerPaweł Redman <pawel.redman@gmail.com>2017-12-12 17:12:42 +0100
commit18b29beb5fa9c5f4bffbd5b9df17643dd78f6ef2 (patch)
treeb4e0b4d809ad82f6fb37aed2f0f95fd71479e666 /src/world.cpp
parentc33d0fa9c43fb316a9c6bbb2be81446dce7f49da (diff)
Fix a regression in path finding.
Diffstat (limited to 'src/world.cpp')
-rw-r--r--src/world.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/world.cpp b/src/world.cpp
index e326bf3..f4aca63 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -85,7 +85,7 @@ bool world_t::find_path(v2f_t src, v2f_t dst, cmodel_t *cmodel, entity_t *ignore
index = finder.base + tile_index_t(x, y);
- if (tiles[get_tile(index)->type] & cmodel->cflags)
+ if (!(tiles[get_tile(index)->type] & cmodel->cflags))
continue;
combined[0] = v2f_t(index) - cmodel_dims / 2;