From 4f6fc9affaa44f57dd728da7d72d8a69f3066816 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Thu, 22 Mar 2018 06:11:08 -0500 Subject: [PATCH] [MIRROR] fixes lava planet appearing in transit / wrong z level (#6067) * boom goes the dynamite (#36590) * fixes lava planet appearing in transit / wrong z level --- code/_onclick/hud/parallax.dm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/code/_onclick/hud/parallax.dm b/code/_onclick/hud/parallax.dm index 43db4fa552..9da765745f 100755 --- a/code/_onclick/hud/parallax.dm +++ b/code/_onclick/hud/parallax.dm @@ -194,6 +194,7 @@ for(var/thing in C.parallax_layers) var/obj/screen/parallax_layer/L = thing + L.update_status(mymob) if (L.view_sized != C.view) L.update_o(C.view) @@ -275,6 +276,9 @@ add_overlay(new_overlays) view_sized = view +/obj/screen/parallax_layer/proc/update_status(mob/M) + return + /obj/screen/parallax_layer/layer_1 icon_state = "layer1" speed = 0.6 @@ -297,6 +301,13 @@ speed = 3 layer = 30 +/obj/screen/parallax_layer/planet/update_status(mob/M) + var/turf/T = get_turf(M) + if(is_station_level(T.z)) + invisibility = 0 + else + invisibility = INVISIBILITY_ABSTRACT + /obj/screen/parallax_layer/planet/update_o() return //Shit wont move