diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-12 17:12:42 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-12 17:12:42 +0100 |
commit | 18b29beb5fa9c5f4bffbd5b9df17643dd78f6ef2 (patch) | |
tree | b4e0b4d809ad82f6fb37aed2f0f95fd71479e666 /src | |
parent | c33d0fa9c43fb316a9c6bbb2be81446dce7f49da (diff) |
Fix a regression in path finding.
Diffstat (limited to 'src')
-rw-r--r-- | src/world.cpp | 2 |
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; |