From 0e38d5e52b043905e9b6a183253cccf822a2824b Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 8 Oct 2022 14:50:00 +0200 Subject: [PATCH] - SW: fixed sound owner issues with non-follow sounds. These sounds were given the wrong type now. cherry pick on master. --- source/games/sw/src/sounds.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/games/sw/src/sounds.cpp b/source/games/sw/src/sounds.cpp index eca3fd0bb..2838498ed 100644 --- a/source/games/sw/src/sounds.cpp +++ b/source/games/sw/src/sounds.cpp @@ -651,11 +651,13 @@ int _PlaySound(int num, DSWActor* actor, PLAYER* pp, const vec3_t* const ppos, i { pos = actor->int_pos(); actor = nullptr; + sourcetype = SOURCE_Unattached; } else if (pp && !ppos) { pos = pp->int_ppos(); pp = nullptr; + sourcetype = SOURCE_Unattached; } }