From 18b29beb5fa9c5f4bffbd5b9df17643dd78f6ef2 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Tue, 12 Dec 2017 17:12:42 +0100 Subject: Fix a regression in path finding. --- src/world.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/world.cpp') 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; -- cgit