Skip to content

Commit

Permalink
fix disconnected observers runtiming HUD
Browse files Browse the repository at this point in the history
  • Loading branch information
fira committed Oct 13, 2023
1 parent a32d8cd commit 8c20e2e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/_onclick/hud/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@
return
var/mob/living/carbon/human/H = mymob
var/mob/screenmob = viewer || H

if(!screenmob?.client)
return

if(!gear.len)
inventory_shown = FALSE
return //species without inv slots don't show items.
Expand Down Expand Up @@ -181,6 +185,9 @@
var/mob/living/carbon/human/H = mymob
var/mob/screenmob = viewer || H

if(!screenmob?.client)
return

if(H.hud_used)
if(H.hud_used.hud_shown)
if(H.s_store)
Expand Down

0 comments on commit 8c20e2e

Please sign in to comment.