summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-19 12:04:37 +0100
committerPaweł Redman <pawel.redman@gmail.com>2017-12-19 12:04:37 +0100
commit48f82598b147358316d6bcf9803df1d14de35143 (patch)
treed1b9778067247b38076e202a369bb855b2fceaaf /src/game
parent31919da4452d02a399fe10c79a2bad90e52fd200 (diff)
Don't mix path finding and moving cflags.
Diffstat (limited to 'src/game')
-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 50b3639..f760304 100644
--- a/src/game/units.cpp
+++ b/src/game/units.cpp
@@ -122,7 +122,7 @@ bool unit_t::keep_moving(double speed)
}
cmodel_next.bounds = size + x_new;
- cmodel_next.cflags = move.cflags;
+ cmodel_next.cflags = cmodel.cflags;
if (!world->test_rect(&cmodel_next, this)) {
x = x_new;
cmodel = cmodel_next;