Skip to content

Commit

Permalink
Fixes laugh emote not playing prefs-selected audio (#2883)
Browse files Browse the repository at this point in the history
Fixes laugh emote not playing audio
  • Loading branch information
vinylspiders authored and StealsThePRs committed Jun 7, 2024
1 parent 7acf9e9 commit 4e57db2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modular_nova/modules/emotes/code/laugh_emotes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
// This sucks and is not how we should be allowing pais to use these emotes
// for humans use selected_laugh, otherwise default to the species-specific laughs.
/datum/emote/living/laugh/get_sound(mob/living/user)
var/selected_laugh
var/mob/living/carbon/human/human_user = user
if(!istype(human_user)) // pais
return

if(isnull(selected_laugh)) //For things that don't have a selected laugh(npcs)
if(isnull(human_user.selected_laugh)) //For things that don't have a selected laugh(npcs)
return ..()

if(human_user.gender == MALE || !LAZYLEN(human_user.selected_laugh.female_laughsounds))
Expand Down

0 comments on commit 4e57db2

Please sign in to comment.