Fixes hotspots runtiming when Destroyed in a wall

This commit is contained in:
Cyberboss
2017-02-03 12:14:03 -05:00
parent d24d02ff69
commit ea200eaa98
@@ -149,15 +149,13 @@
/obj/effect/hotspot/Destroy()
SetLuminosity(0)
SSair.hotspots -= src
if(isturf(loc))
var/turf/open/T = loc
if(T.active_hotspot == src)
T.active_hotspot = null
var/turf/open/T = loc
if(istype(T) && T.active_hotspot == src)
T.active_hotspot = null
DestroyTurf()
loc = null
. = ..()
/obj/effect/hotspot/proc/DestroyTurf()
if(isturf(loc))
var/turf/T = loc