From 99486e14e2b39aecec5dcad784e5557778da5320 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Fri, 20 Apr 2018 17:43:21 +0200 Subject: Fix tracers going through walls. --- src/game/unit_soldier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- cgit