From cd9b7052f07291e3975bad5dcfe9ad0338c17e74 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Fri, 15 Dec 2017 15:01:38 +0100 Subject: Add tracers. --- src/game/units.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game/units.cpp') diff --git a/src/game/units.cpp b/src/game/units.cpp index 0f992f9..c50a3fb 100644 --- a/src/game/units.cpp +++ b/src/game/units.cpp @@ -297,8 +297,13 @@ void human_t::think(void) trace = world->trace(x, target->x, CF_SOLID); if (!trace.hit) { + fx_tracer_t *tracer; + last_attack = game->now; try_attack(target); + + tracer = new fx_tracer_t(game, x, target->x); + game->add_effect(tracer); } } -- cgit