mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-31 13:00:59 +00:00
- fixed - sector sounds were not translated through portal groups properly
This commit is contained in:
parent
e3c78ab838
commit
780ddd21bd
1 changed files with 2 additions and 2 deletions
|
@ -757,8 +757,8 @@ static void CalcPosVel(int type, const AActor *actor, const sector_t *sector,
|
||||||
{
|
{
|
||||||
// listener must be reversely offset to calculate the proper sound origin.
|
// listener must be reversely offset to calculate the proper sound origin.
|
||||||
CalcSectorSoundOrg(listenpos + disp, sector, channum, *pos);
|
CalcSectorSoundOrg(listenpos + disp, sector, channum, *pos);
|
||||||
pos->X += (float)disp.X;
|
pos->X -= (float)disp.X;
|
||||||
pos->Z += (float)disp.Y;
|
pos->Z -= (float)disp.Y;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue