A plethora of Destroy() fixes - return qdel hints and clean stuff up.

This commit is contained in:
Leshana
2017-06-11 23:46:45 -04:00
parent 2cd91c8bfc
commit 4b46703d9d
17 changed files with 36 additions and 47 deletions

View File

@@ -32,13 +32,12 @@
my_gen.field.Remove(src)
my_gen = null
var/turf/current_loc = get_turf(src)
spawn(1) // Updates neightbors after we're gone.
for(var/direction in cardinal)
var/turf/T = get_step(current_loc, direction)
if(T)
for(var/obj/effect/energy_field/F in T)
F.update_icon()
..()
. = ..()
for(var/direction in cardinal)
var/turf/T = get_step(current_loc, direction)
if(T)
for(var/obj/effect/energy_field/F in T)
F.update_icon()
/obj/effect/energy_field/ex_act(var/severity)
adjust_strength(-(4 - severity) * 4)

View File

@@ -38,10 +38,8 @@
..()
/obj/machinery/shield_gen/Destroy()
for(var/obj/effect/energy_field/D in field)
field.Remove(D)
D.loc = null
..()
qdel_null_list(field)
return ..()
/obj/machinery/shield_gen/emag_act(var/remaining_charges, var/mob/user)
if(prob(75))