summaryrefslogtreecommitdiff
path: root/src/content/entities
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/entities')
-rw-r--r--src/content/entities/entity_bullet_emitter.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/content/entities/entity_bullet_emitter.rs b/src/content/entities/entity_bullet_emitter.rs
index 3788dd9..7cb24a6 100644
--- a/src/content/entities/entity_bullet_emitter.rs
+++ b/src/content/entities/entity_bullet_emitter.rs
@@ -32,12 +32,12 @@ impl EntityBehaviour for BulletEmitterEntityBehaviour {
self.shot_timer -= delta_time;
if self.shot_timer <= 0.0 {
- apply_bullet(ctx, from, target, 70);
+ let stopped_at = apply_bullet(ctx, from, target, 70);
// 0.1 seconds to travel 200 cells
- let lifetime = (target - from).length() / 1000.0;
+ let lifetime = (stopped_at - from).length() / 1000.0;
ctx.vfx_writer.write_vfx_line(VfxLine::new(
from,
- target,
+ stopped_at,
1.3,
VfxMaterialId::Tracer,
lifetime,