summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-20 17:43:21 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-20 17:43:21 +0200
commit99486e14e2b39aecec5dcad784e5557778da5320 (patch)
tree13d7c0d9c71beb4091970d55344cc088b606f460 /src
parenta49086004702de6d4facf07b77eca8b4be0f087f (diff)
Fix tracers going through walls.
Diffstat (limited to 'src')
-rw-r--r--src/game/unit_soldier.cpp2
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)) {