From 139779aecad253155d90ee1a68403dece48a3a02 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Tue, 19 Dec 2017 13:32:32 +0100 Subject: Ignore own cflags when looking for a path. --- src/game/units.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game') diff --git a/src/game/units.cpp b/src/game/units.cpp index 691a099..4e2b2aa 100644 --- a/src/game/units.cpp +++ b/src/game/units.cpp @@ -161,7 +161,7 @@ bool unit_t::start_moving(v2f_t dst) move.dst = dst; move.path.clear(); - rep.cflags = move.cflags; + rep.cflags = move.cflags & ~(cmodel.cflags); rep.bounds = cmodel.bounds; if (!world->find_path(x, move.dst, &rep, this, &move.path)) { -- cgit