mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
fixes sleepblind not being cleared if you are blind from othermeans (#25390)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user