mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 00:23:29 +01:00
mostly fixes wallweed GC issues (#20209)
This commit is contained in:
@@ -292,6 +292,8 @@
|
||||
check_counter = 0
|
||||
|
||||
/obj/structure/alien/weeds/proc/clear_wall_weed()
|
||||
if(wall_weed)
|
||||
wall_weed.weed = null
|
||||
QDEL_NULL(wall_weed)
|
||||
|
||||
/obj/structure/alien/weeds/proc/check_surroundings()
|
||||
@@ -329,7 +331,7 @@
|
||||
return
|
||||
|
||||
if(!wall_weed || QDELETED(wall_weed))
|
||||
wall_weed = new(get_turf(src))
|
||||
wall_weed = new /obj/structure/alien/wallweed(T, src)
|
||||
|
||||
wall_weed.compare_overlays(wall_dirs)
|
||||
|
||||
@@ -368,10 +370,17 @@
|
||||
plane = GAME_PLANE
|
||||
|
||||
max_integrity = 15
|
||||
var/obj/structure/alien/weeds/weed
|
||||
var/list/overlay_list = list()
|
||||
|
||||
/obj/structure/alien/wallweed/Initialize(mapload, weed_owner)
|
||||
. = ..()
|
||||
weed = weed_owner
|
||||
|
||||
/obj/structure/alien/wallweed/Destroy()
|
||||
playsound(loc, pick('sound/effects/alien_resin_break2.ogg','sound/effects/alien_resin_break1.ogg'), 50, FALSE)
|
||||
if(weed)
|
||||
weed.wall_weed = null
|
||||
return ..()
|
||||
|
||||
/obj/structure/alien/wallweed/proc/compare_overlays(list/wall_dirs)
|
||||
|
||||
Reference in New Issue
Block a user