Fix mob zshadow update icons and other openspace fixes.

* Admin teleports will now update zshadow.
* update_icon() now syncs the zshadow.
* Objects being deleted will trigger open space update.
This commit is contained in:
Leshana
2017-05-15 20:45:22 -04:00
parent c12ac6d6b9
commit f02d9d79b1
3 changed files with 28 additions and 0 deletions
@@ -92,3 +92,11 @@
if(isopenspace(T))
// log_debug("[T] ([T.x],[T.y],[T.z]) queued for update for [src]New()")
OS_controller.add_turf(T, 1)
// Just as New() we probably should hook Destroy() If we can think of something more efficient, lets hear it.
/obj/Destroy()
if(open_space_initialised && !invisibility)
var/turf/T = GetAbove(src)
if(isopenspace(T))
OS_controller.add_turf(T, 1)
. = ..() // Important that this be at the bottom, or we will have been moved to nullspace.