diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-19 14:05:34 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-19 14:05:34 +0100 |
commit | daaf31a67548266c1079e6361974bbc2ecfbc1f7 (patch) | |
tree | f23d66753fa0ffdb472cd2bbbebc9a4ba4d71606 /src/game | |
parent | fec522f3c77696ea1d7907a1a2484910f8e391ca (diff) |
Clear the path upon death.
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/units.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/units.cpp b/src/game/units.cpp index 021f4ac..f25fdc8 100644 --- a/src/game/units.cpp +++ b/src/game/units.cpp @@ -196,6 +196,7 @@ void unit_t::die(unit_t *killer) dead = true; death_time = game->now; cmodel.cflags = 0; + move.path.clear(); sleep(); ignore_waking = true; @@ -428,7 +429,6 @@ void unit_soldier_t::on_think(void) move.path.clear(); move.path.push_back(x + t * 10); panic_turn = game->now + 0.3; - std::cout << "panic_turn to " << x + t * 10 << "\n"; } } } |