mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2025-12-11 21:31:09 +00:00
45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
// this system is shit change it asap // KEVINZ000 COMMENT
|
|
|
|
/turf/Entered(atom/movable/AM)
|
|
. = ..()
|
|
if(SSopenspace.subsystem_initialized && !AM.invisibility && isobj(AM))
|
|
var/turf/T = GetAbove(src)
|
|
if(isopenspace(T))
|
|
// log_debug("[T] ([T.x],[T.y],[T.z]) queued for update for [src].Entered([AM])")
|
|
SSopenspace.add_turf(T, 1)
|
|
|
|
/turf/Exited(atom/movable/AM)
|
|
..()
|
|
if(SSopenspace.subsystem_initialized && !AM.invisibility && isobj(AM))
|
|
var/turf/T = GetAbove(src)
|
|
if(isopenspace(T))
|
|
// log_debug("[T] ([T.x],[T.y],[T.z]) queued for update for [src].Exited([AM])")
|
|
SSopenspace.add_turf(T, 1)
|
|
|
|
/obj/update_icon()
|
|
. = ..()
|
|
if(SSopenspace.subsystem_initialized && !invisibility && isturf(loc))
|
|
var/turf/T = GetAbove(src)
|
|
if(isopenspace(T))
|
|
// log_debug("[T] ([T.x],[T.y],[T.z]) queued for update for [src].update_icon()")
|
|
SSopenspace.add_turf(T, 1)
|
|
|
|
// Ouch... this is painful. But is there any other way?
|
|
/* - No for now
|
|
/obj/New()
|
|
. = ..()
|
|
if(SSopenspace.subsystem_initialized && !invisibility)
|
|
var/turf/T = GetAbove(src)
|
|
if(isopenspace(T))
|
|
// log_debug("[T] ([T.x],[T.y],[T.z]) queued for update for [src]New()")
|
|
SSopenspace.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(SSopenspace.subsystem_initialized && !invisibility && isturf(loc))
|
|
var/turf/T = GetAbove(src)
|
|
if(isopenspace(T))
|
|
SSopenspace.add_turf(T, 1)
|
|
. = ..() // Important that this be at the bottom, or we will have been moved to nullspace.
|