diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-19 13:32:32 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-19 13:32:32 +0100 |
commit | 139779aecad253155d90ee1a68403dece48a3a02 (patch) | |
tree | 85a6afa4fd9d7a51d9b71f2b64657eb7eeb5bcbe /src/game | |
parent | 1de83ba7bc556a1af61c1030cd3c649e37b5db25 (diff) |
Ignore own cflags when looking for a path.
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/units.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |