Fixes solar tracker issues, and multiz emissives (#73288)

## About The Pull Request

Fixes solar trackers not showing up (they didn't have the right subtype
so they weren't inheriting their parents icon)
Fixes solars not blocking emissives on multiz (They didn't pass a loc
into their overlays, so the overlays were drawing their emissive
blockers to the wrong plane)

## Why It's Good For The Game
## Changelog
🆑
fix: Solar trackers actually uh, look right again
fix: Solar panels and trackers will now properly block space lighting on
multiz maps
/🆑
This commit is contained in:
LemonInTheDark
2023-02-09 23:19:18 -07:00
committed by GitHub
parent c2192aae01
commit dba14c87f8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -57,7 +57,7 @@
blocks_emissive = EMISSIVE_BLOCK_UNIQUE
/obj/machinery/power/solar/proc/add_panel_overlay(icon_state, z_offset)
var/obj/effect/overlay/solar_panel/overlay = new()
var/obj/effect/overlay/solar_panel/overlay = new(src)
overlay.icon_state = icon_state
SET_PLANE_EXPLICIT(overlay, ABOVE_GAME_PLANE, src)
overlay.pixel_z = z_offset
+1 -1
View File
@@ -50,7 +50,7 @@
layer = FLY_LAYER
/obj/machinery/power/tracker/proc/add_panel_overlay(icon_state, z_offset)
var/obj/effect/overlay/overlay = new()
var/obj/effect/overlay/tracker/overlay = new(src)
overlay.icon_state = icon_state
SET_PLANE_EXPLICIT(overlay, ABOVE_GAME_PLANE, src)
overlay.pixel_z = z_offset