Skip to content

Commit

Permalink
Fixes a small emote runtime (#13725)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmixo authored Aug 9, 2023
1 parent d24bb9c commit 87df8e5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/datums/emotes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@
playsound(user, tmp_sound, 50, flags_emote & EMOTE_VARY)

if(user.client)
for(var/i in GLOB.dead_mob_list)
var/mob/M = i
if(isnewplayer(M) || !M.client)
for(var/mob/M AS in GLOB.dead_mob_list)
if(!ismob(M) || isnewplayer(M) || !M.client)
continue
var/T = get_turf(user)
if(!(M.client.prefs.toggles_chat & CHAT_GHOSTSIGHT) || (M in viewers(T, null)))
Expand Down

0 comments on commit 87df8e5

Please sign in to comment.