summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-19 14:05:34 +0100
committerPaweł Redman <pawel.redman@gmail.com>2017-12-19 14:05:34 +0100
commitdaaf31a67548266c1079e6361974bbc2ecfbc1f7 (patch)
treef23d66753fa0ffdb472cd2bbbebc9a4ba4d71606 /src
parentfec522f3c77696ea1d7907a1a2484910f8e391ca (diff)
Clear the path upon death.
Diffstat (limited to 'src')
-rw-r--r--src/game/units.cpp2
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";
}
}
}