diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-04-20 17:43:21 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-04-20 17:43:21 +0200 |
commit | 99486e14e2b39aecec5dcad784e5557778da5320 (patch) | |
tree | 13d7c0d9c71beb4091970d55344cc088b606f460 | |
parent | a49086004702de6d4facf07b77eca8b4be0f087f (diff) |
Fix tracers going through walls.
-rw-r--r-- | src/game/unit_soldier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/unit_soldier.cpp b/src/game/unit_soldier.cpp index a10e014..31def92 100644 --- a/src/game/unit_soldier.cpp +++ b/src/game/unit_soldier.cpp @@ -89,7 +89,7 @@ void unit_soldier_t::shoot(v2f_t from, v2f_t at, int damage) ent->damage(damage, this); } - tracer = new fx_tracer_t(game, from, at); + tracer = new fx_tracer_t(game, from, trace.end); tracer->place(&game->world); if (trace.hit && (!trace.ent || trace.ent->type == ET_UNIT)) { |