diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-21 18:01:23 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-21 18:01:23 +0100 |
commit | 680ce5519c24dd0fa87ae85dd824000e915974b0 (patch) | |
tree | be42a1b9915c28944829a94f54c3296722b71170 /src/game/units.cpp | |
parent | 6eed8de736ff18a2aed65cd9ba62c6a7b5d18c59 (diff) |
Add move markers.
Diffstat (limited to 'src/game/units.cpp')
-rw-r--r-- | src/game/units.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/units.cpp b/src/game/units.cpp index c8ba2d8..d072f20 100644 --- a/src/game/units.cpp +++ b/src/game/units.cpp @@ -431,8 +431,9 @@ void unit_soldier_t::on_think(void) if (!panic) { target_and_attack(); - if (!keep_moving(4.0)) - say(text::get(text::SAY_BLOCKED)); + keep_moving(4.0); + if (!move.moving) + move_marker.reset(); } else { move.moving = true; keep_moving(6.0); @@ -458,6 +459,7 @@ void unit_soldier_t::on_death(void) place(world, x); controllable = false; game->selected_units.erase(this); + move_marker.reset(); } void unit_soldier_t::render_to(render::state_t *render) |