From 680ce5519c24dd0fa87ae85dd824000e915974b0 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Thu, 21 Dec 2017 18:01:23 +0100 Subject: Add move markers. --- src/game/units.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/game/units.cpp') 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) -- cgit