mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
- 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:
parent
96e6424772
commit
0e38d5e52b
1 changed files with 2 additions and 0 deletions
|
@ -651,11 +651,13 @@ int _PlaySound(int num, DSWActor* actor, PLAYER* pp, const vec3_t* const ppos, i
|
||||||
{
|
{
|
||||||
pos = actor->int_pos();
|
pos = actor->int_pos();
|
||||||
actor = nullptr;
|
actor = nullptr;
|
||||||
|
sourcetype = SOURCE_Unattached;
|
||||||
}
|
}
|
||||||
else if (pp && !ppos)
|
else if (pp && !ppos)
|
||||||
{
|
{
|
||||||
pos = pp->int_ppos();
|
pos = pp->int_ppos();
|
||||||
pp = nullptr;
|
pp = nullptr;
|
||||||
|
sourcetype = SOURCE_Unattached;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue