summaryrefslogtreecommitdiff
path: root/src/game/units.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/units.cpp')
-rw-r--r--src/game/units.cpp6
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)