summaryrefslogtreecommitdiff
path: root/src/game/units.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/units.cpp')
-rw-r--r--src/game/units.cpp5
1 files changed, 5 insertions, 0 deletions
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);
}
}