[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
This commit is contained in:
CitadelStationBot
2018-03-22 06:11:08 -05:00
committed by Poojawa
parent b340810615
commit 4f6fc9affa

View File

@@ -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