fixes sleepblind not being cleared if you are blind from othermeans (#25390)

This commit is contained in:
Qwertytoforty
2024-05-05 15:03:06 +00:00
committed by GitHub
parent 2ab2fa76f3
commit 274ff7b1c4
2 changed files with 5 additions and 2 deletions
@@ -1,4 +1,7 @@
/mob/living/update_blind_effects(sleeping = FALSE)
/mob/living/update_blind_effects(sleeping = FALSE, force_clear_sleeping = FALSE)
if(force_clear_sleeping) //We force it on waking up, as if you are blind from other methods it will refuse to clear it.
clear_fullscreen("sleepblind")
clear_fullscreen("disky")
if(!has_vision(information_only=TRUE))
if(sleeping)
overlay_fullscreen("sleepblind", /atom/movable/screen/fullscreen/center/blind/sleeping, animated = 2 SECONDS)
+1 -1
View File
@@ -42,7 +42,7 @@
if(updating)
update_sight()
update_blind_effects()
update_blind_effects(force_clear_sleeping = TRUE)
if(hud_used && client)
hud_used.show_hud(HUD_STYLE_STANDARD)