From daaf31a67548266c1079e6361974bbc2ecfbc1f7 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Tue, 19 Dec 2017 14:05:34 +0100 Subject: Clear the path upon death. --- src/game/units.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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"; } } } -- cgit