summaryrefslogtreecommitdiff
path: root/src/game/units.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-14 16:41:55 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-14 16:41:55 +0200
commitaea9498a593321a3cb34fa93d3d4734ebd8370c1 (patch)
treee4e4f1bb38cb8d4cb427a78e77df62d4da024f7d /src/game/units.cpp
parente132c6a9f75918978051e8eb23092f5d05c7c3fc (diff)
Improve path finding slightly.
Diffstat (limited to 'src/game/units.cpp')
-rw-r--r--src/game/units.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/units.cpp b/src/game/units.cpp
index 43e6878..11379cb 100644
--- a/src/game/units.cpp
+++ b/src/game/units.cpp
@@ -177,7 +177,7 @@ bool unit_t::start_moving(v2f_t dst)
move.path.clear();
move.last_step = x;
- rep.cflags = move.cflags & ~(cmodel.cflags);
+ rep.cflags = move.cflags;
rep.bounds = cmodel.bounds;
if (!world->find_path(x, move.dst, &rep, this, &move.path)) {