Skip to content

Commit

Permalink
[MIRROR] Fixes destroyed solar panels dropping overlays (#2465) (#3302)
Browse files Browse the repository at this point in the history
* Fixes destroyed solar panels dropping overlays (#83224)

## About The Pull Request
Fixes #82301
It feels like im missing something here so if this isnt the right way to
fix this (deleting the overlays on the solar panels Destroy() ) please
tell me.

## Why It's Good For The Game
Bugfix

## Changelog

:cl: Seven
fix: Destroyed solar panels no longer drop their overlays
/:cl:

* Fixes destroyed solar panels dropping overlays

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: Lufferly <[email protected]>
Co-authored-by: NovaBot13 <[email protected]>
  • Loading branch information
4 people authored May 15, 2024
1 parent bf80db3 commit dff00fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/power/solar.dm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@

/obj/machinery/power/solar/Destroy()
unset_control() //remove from control computer
QDEL_NULL(panel)
QDEL_NULL(panel_edge)
return ..()

/obj/machinery/power/solar/on_changed_z_level(turf/old_turf, turf/new_turf, same_z_layer, notify_contents)
Expand Down

0 comments on commit dff00fe

Please sign in to comment.