mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-05 01:38:13 +00:00
Fix voice flipping in encore/stereoreverse
This commit is contained in:
parent
9758bcd5ef
commit
a399aacb39
1 changed files with 5 additions and 1 deletions
|
|
@ -1011,7 +1011,11 @@ void S_UpdateVoicePositionalProperties(void)
|
|||
float pdirx = px / p2ddistance;
|
||||
float pdiry = py / p2ddistance;
|
||||
float angle = acosf(pdirx * ldirx + pdiry * ldiry);
|
||||
angle = PointIsLeft(ldirx, ldiry, pdirx, pdiry) ? -angle : angle;
|
||||
angle = (
|
||||
PointIsLeft(ldirx, ldiry, pdirx, pdiry)
|
||||
^ stereoreverse.value
|
||||
^ encoremode
|
||||
) ? -angle : angle;
|
||||
|
||||
float plrvolume = 1.0f;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue