- SW: fixed sound owner issues with non-follow sounds.

These sounds were given the wrong type now.

cherry pick on master.
This commit is contained in:
Christoph Oelckers 2022-10-08 14:50:00 +02:00
parent 96e6424772
commit 0e38d5e52b

View file

@ -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;
}
}