Merge pull request #23665 from Cyberboss/hotspotfix

Fixes hotspots runtiming when Destroyed in a wall
This commit is contained in:
Cheridan
2017-02-05 01:40:01 -06:00
committed by GitHub
@@ -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