Skip to content

Commit

Permalink
[MIRROR] Fix white skybox appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhEugene committed Jan 29, 2024
1 parent 143f334 commit 3041677
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/_onclick/hud/skybox.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@
screen |= skybox
skybox.screen_loc = "CENTER:[-224 - T.x],CENTER:[-224 - T.y]"

/client/proc/deferred_update_skybox(rebuild)
set waitfor = FALSE
sleep(1)
update_skybox(rebuild)

/mob/Login()
..()
client.update_skybox(1)
client.deferred_update_skybox(1)

/mob/Move()
var/old_z = get_z(src)
Expand Down
1 change: 1 addition & 0 deletions code/controllers/subsystems/skybox.dm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ SUBSYSTEM_DEF(skybox)
dust.blend_mode = BLEND_ADD
var/mutable_appearance/space = new /mutable_appearance(/turf/space)
space.icon_state = "white"
space.plane = SKYBOX_PLANE
space.AddOverlays(dust)
space_appearance_cache[index] = space.appearance
background_color = RANDOM_RGB
Expand Down

0 comments on commit 3041677

Please sign in to comment.