From d7c5e16f6c0c82a9d8ca214b010094f65b5e61f3 Mon Sep 17 00:00:00 2001
From: Sally Coolatta <tehrealsalt@gmail.com>
Date: Mon, 28 Feb 2022 11:50:12 -0500
Subject: [PATCH] Play sound globally if emblems are shared

---
 src/p_inter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/p_inter.c b/src/p_inter.c
index 02ae222e31..b5266e09f6 100644
--- a/src/p_inter.c
+++ b/src/p_inter.c
@@ -822,7 +822,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
 				spark = P_SpawnMobjFromMobj(special, 0, 0, 0, MT_SPARK);
 				if (prevCollected == false && P_EmblemWasCollected(special->health - 1) == true)
 				{
-					S_StartSound(special, special->info->deathsound);
+					S_StartSound((shareEmblems ? NULL : special), special->info->deathsound);
 				}
 				else
 				{
-- 
GitLab