mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Fix shuttles not updating skybox
This commit is contained in:
@@ -44,17 +44,10 @@
|
|||||||
. = ..()
|
. = ..()
|
||||||
client.update_skybox(TRUE)
|
client.update_skybox(TRUE)
|
||||||
|
|
||||||
/mob/Move()
|
/mob/onTransitZ(old_z, new_z)
|
||||||
var/old_z = get_z(src)
|
..()
|
||||||
. = ..()
|
if(old_z != new_z)
|
||||||
if(. && client)
|
client?.update_skybox(TRUE)
|
||||||
client.update_skybox(old_z != get_z(src))
|
|
||||||
|
|
||||||
/mob/forceMove()
|
|
||||||
var/old_z = get_z(src)
|
|
||||||
. = ..()
|
|
||||||
if(. && client)
|
|
||||||
client.update_skybox(old_z != get_z(src))
|
|
||||||
|
|
||||||
/mob/set_viewsize()
|
/mob/set_viewsize()
|
||||||
. = ..()
|
. = ..()
|
||||||
|
|||||||
@@ -109,6 +109,10 @@ SUBSYSTEM_DEF(skybox)
|
|||||||
skybox_cache["[z]"] = generate_skybox(z)
|
skybox_cache["[z]"] = generate_skybox(z)
|
||||||
|
|
||||||
for(var/client/C)
|
for(var/client/C)
|
||||||
|
var/their_z = get_z(C.mob)
|
||||||
|
if(!their_z) //Nullspace
|
||||||
|
continue
|
||||||
|
if(their_z in zlevels)
|
||||||
C.update_skybox(1)
|
C.update_skybox(1)
|
||||||
|
|
||||||
// Settings datum that maps can override to play with their skyboxes
|
// Settings datum that maps can override to play with their skyboxes
|
||||||
|
|||||||
Reference in New Issue
Block a user