mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-23 00:12:27 +00:00
Merge branch 'voice-flip' into 'master'
Fix voice flipping in encore/stereoreverse See merge request kart-krew-dev/ring-racers-internal!2853
This commit is contained in:
commit
6d80892d7f
1 changed files with 5 additions and 1 deletions
|
|
@ -1011,7 +1011,11 @@ void S_UpdateVoicePositionalProperties(void)
|
||||||
float pdirx = px / p2ddistance;
|
float pdirx = px / p2ddistance;
|
||||||
float pdiry = py / p2ddistance;
|
float pdiry = py / p2ddistance;
|
||||||
float angle = acosf(pdirx * ldirx + pdiry * ldiry);
|
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;
|
float plrvolume = 1.0f;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue