mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 05:57:24 +01:00
Garbage collection fixes
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
I.loc = src
|
||||
|
||||
// Fix for #383 - C4 deleting fridges with corpses
|
||||
/obj/structure/closet/Del()
|
||||
/obj/structure/closet/Destroy()
|
||||
dump_contents()
|
||||
..()
|
||||
|
||||
@@ -363,4 +363,4 @@
|
||||
/obj/structure/closet/Exit(atom/movable/AM)
|
||||
open()
|
||||
if(AM.loc == src) return 0
|
||||
return 1
|
||||
return 1
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
relativewall_neighbours()
|
||||
..()
|
||||
|
||||
/obj/structure/falsewall/Del()
|
||||
/obj/structure/falsewall/Destroy()
|
||||
|
||||
var/temploc = src.loc
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
//height=42
|
||||
icon='icons/fence-ns.dmi'
|
||||
|
||||
/obj/structure/grille/Del()
|
||||
/obj/structure/grille/Destroy()
|
||||
loc = null //garbage collect
|
||||
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
L = locate(/obj/structure/lattice, get_step(src, dir))
|
||||
L.updateOverlays()
|
||||
|
||||
/obj/structure/lattice/Del()
|
||||
/obj/structure/lattice/Destroy()
|
||||
for (var/dir in cardinal)
|
||||
var/obj/structure/lattice/L
|
||||
if(locate(/obj/structure/lattice, get_step(src, dir)))
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
name = "[mineralType] door"
|
||||
update_nearby_tiles(need_rebuild=1)
|
||||
|
||||
Del()
|
||||
Destroy()
|
||||
update_nearby_tiles()
|
||||
..()
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
if(health <= 0)
|
||||
if(buckled_mob)
|
||||
buckled_mob << "The [src.name] was destroyed!"
|
||||
Del()
|
||||
Destroy()
|
||||
|
||||
/obj/item/sec_seg_key
|
||||
name = "security segway key"
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
desc = "This looks similar to contraptions from earth. Could aliens be stealing our technology?"
|
||||
icon_state = "abed"
|
||||
|
||||
/obj/structure/stool/bed/Del()
|
||||
/obj/structure/stool/bed/Destroy()
|
||||
unbuckle()
|
||||
..()
|
||||
return
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
update_icon()
|
||||
update_adjacent()
|
||||
|
||||
/obj/structure/table/Del()
|
||||
/obj/structure/table/Destroy()
|
||||
update_adjacent()
|
||||
..()
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
|
||||
|
||||
/obj/structure/transit_tube_pod/Del()
|
||||
/obj/structure/transit_tube_pod/Destroy()
|
||||
for(var/atom/movable/AM in contents)
|
||||
AM.loc = loc
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ obj/structure/windoor_assembly/New(dir=NORTH)
|
||||
src.ini_dir = src.dir
|
||||
update_nearby_tiles(need_rebuild=1)
|
||||
|
||||
obj/structure/windoor_assembly/Del()
|
||||
obj/structure/windoor_assembly/Destroy()
|
||||
density = 0
|
||||
update_nearby_tiles()
|
||||
..()
|
||||
|
||||
@@ -348,7 +348,7 @@
|
||||
return
|
||||
|
||||
|
||||
/obj/structure/window/Del()
|
||||
/obj/structure/window/Destroy()
|
||||
density = 0
|
||||
update_nearby_tiles()
|
||||
playsound(src, "shatter", 70, 1)
|
||||
|
||||
Reference in New Issue
Block a user