Garbage collection fixes

This commit is contained in:
ZomgPonies
2014-02-19 20:24:31 -05:00
parent d26777a0d9
commit 1ab8df4b13
141 changed files with 2310 additions and 2278 deletions
@@ -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
+1 -1
View File
@@ -80,7 +80,7 @@
relativewall_neighbours()
..()
/obj/structure/falsewall/Del()
/obj/structure/falsewall/Destroy()
var/temploc = src.loc
+1 -1
View File
@@ -35,7 +35,7 @@
//height=42
icon='icons/fence-ns.dmi'
/obj/structure/grille/Del()
/obj/structure/grille/Destroy()
loc = null //garbage collect
+1 -1
View File
@@ -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()
..()
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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()
..()
+1 -1
View File
@@ -348,7 +348,7 @@
return
/obj/structure/window/Del()
/obj/structure/window/Destroy()
density = 0
update_nearby_tiles()
playsound(src, "shatter", 70, 1)