From 9be17a0efc4e65277bb503f0559c6c7b362293db Mon Sep 17 00:00:00 2001 From: esainane Date: Sat, 9 Oct 2021 21:27:37 +1300 Subject: [PATCH] Tracers: Migrate to use new rendering system (#61963) This fixes Emitters, beam_rifle, and more. The great rendering refactor (#61286) changed how rendering worked. Entities need to have a usable plane to render to. This isn't normally a problem, as sensible defaults are set very low in the type path. However, tracer effects use an appearance override, which was missing the plane definition. This adds the plane to the appearance used when apply_vars is called, by copying it from the holding entity. --- .../effects/temporary_visuals/projectiles/projectile_effects.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/game/objects/effects/temporary_visuals/projectiles/projectile_effects.dm b/code/game/objects/effects/temporary_visuals/projectiles/projectile_effects.dm index b31b575c3ce..f0c25219c13 100644 --- a/code/game/objects/effects/temporary_visuals/projectiles/projectile_effects.dm +++ b/code/game/objects/effects/temporary_visuals/projectiles/projectile_effects.dm @@ -38,6 +38,7 @@ /obj/effect/projectile/proc/apply_vars(angle_override, p_x = 0, p_y = 0, color_override, scaling = 1, new_loc, increment = 0) var/mutable_appearance/look = new(src) + look.plane = plane look.pixel_x = p_x look.pixel_y = p_y if(color_override)