Fix shuttles not updating skybox

This commit is contained in:
Aronai Sieyes
2020-04-14 17:05:16 -04:00
parent c5b3be0123
commit 31f7f5b256
2 changed files with 9 additions and 12 deletions

View File

@@ -44,17 +44,10 @@
. = ..()
client.update_skybox(TRUE)
/mob/Move()
var/old_z = get_z(src)
. = ..()
if(. && client)
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/onTransitZ(old_z, new_z)
..()
if(old_z != new_z)
client?.update_skybox(TRUE)
/mob/set_viewsize()
. = ..()