diff options
Diffstat (limited to 'src/game/units.cpp')
-rw-r--r-- | src/game/units.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/units.cpp b/src/game/units.cpp index a6edc48..691a099 100644 --- a/src/game/units.cpp +++ b/src/game/units.cpp @@ -99,6 +99,7 @@ bool unit_t::keep_moving(double speed) return true; time = game->dt * speed; + move.blocked = true; while (time > 0.0f) { v2f_t delta, next, x_new; @@ -129,11 +130,11 @@ bool unit_t::keep_moving(double speed) if (!world->test_rect(&cmodel_next, this)) { x = x_new; cmodel = cmodel_next; + move.blocked = false; continue; } if (move.attempts_left) { - move.blocked = true; move.attempts_left--; move.next_attempt = game->now + 0.2f; } else { |