mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 18:02:57 +00:00
[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:
committed by
Poojawa
parent
b340810615
commit
4f6fc9affa
@@ -194,6 +194,7 @@
|
|||||||
|
|
||||||
for(var/thing in C.parallax_layers)
|
for(var/thing in C.parallax_layers)
|
||||||
var/obj/screen/parallax_layer/L = thing
|
var/obj/screen/parallax_layer/L = thing
|
||||||
|
L.update_status(mymob)
|
||||||
if (L.view_sized != C.view)
|
if (L.view_sized != C.view)
|
||||||
L.update_o(C.view)
|
L.update_o(C.view)
|
||||||
|
|
||||||
@@ -275,6 +276,9 @@
|
|||||||
add_overlay(new_overlays)
|
add_overlay(new_overlays)
|
||||||
view_sized = view
|
view_sized = view
|
||||||
|
|
||||||
|
/obj/screen/parallax_layer/proc/update_status(mob/M)
|
||||||
|
return
|
||||||
|
|
||||||
/obj/screen/parallax_layer/layer_1
|
/obj/screen/parallax_layer/layer_1
|
||||||
icon_state = "layer1"
|
icon_state = "layer1"
|
||||||
speed = 0.6
|
speed = 0.6
|
||||||
@@ -297,6 +301,13 @@
|
|||||||
speed = 3
|
speed = 3
|
||||||
layer = 30
|
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()
|
/obj/screen/parallax_layer/planet/update_o()
|
||||||
return //Shit wont move
|
return //Shit wont move
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user