diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-15 15:01:38 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-15 15:01:38 +0100 |
commit | cd9b7052f07291e3975bad5dcfe9ad0338c17e74 (patch) | |
tree | 532e33fe82f6335ae63c51e461c1814363c711a6 /src/game/units.cpp | |
parent | e91ce36233474222e39ac2732100963fcb55574a (diff) |
Add tracers.
Diffstat (limited to 'src/game/units.cpp')
-rw-r--r-- | src/game/units.cpp | 5 |
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); } } |