From 3d31fc8232e4a3c3788f7de8ffb787ffd5565f14 Mon Sep 17 00:00:00 2001 From: silicons <2003111+silicons@users.noreply.github.com> Date: Wed, 25 Dec 2024 20:11:07 -0800 Subject: [PATCH] Update world.dm --- code/game/world.dm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/code/game/world.dm b/code/game/world.dm index 6894a4289038..e52d7dc58166 100644 --- a/code/game/world.dm +++ b/code/game/world.dm @@ -410,12 +410,16 @@ GLOBAL_LIST(topic_status_cache) status = . +/** + * Sets whether or not we're visible on the hub. + * * This is the only place where `hub_password`, `visibility`, or `hub` should be touched! + */ /world/proc/update_hub_visibility(new_visibility) + new_visibility = !!new_visibility if(new_visibility == visibility) return - - visibility = new_visibility - if(visibility) + src.visibility = new_visibility + if(src.visibility) hub_password = "kMZy3U5jJHSiBQjr" else hub_password = "SORRYNOPASSWORD"