diff options
author | Chris Robinson <[email protected]> | 2022-03-05 17:39:18 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-03-05 17:39:18 -0800 |
commit | 776d62c1d1e6956eff63ebd1ef22c287ecce89bd (patch) | |
tree | 430108de724619b4a6b09635cb498a7f24628e8c /al/source.cpp | |
parent | cc3cae87b2be6d953333958dc4ffbf0b54d24c6b (diff) |
Fix EAXSOURCE_ROLLOFFFACTOR
It should be added to AL_ROLLOFF_FACTOR.
Diffstat (limited to 'al/source.cpp')
-rw-r--r-- | al/source.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/al/source.cpp b/al/source.cpp index f759dcc7..f985da7a 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -121,7 +121,11 @@ void UpdateSourceProps(const ALsource *source, Voice *voice, ALCcontext *context props->OuterAngle = source->OuterAngle; props->RefDistance = source->RefDistance; props->MaxDistance = source->MaxDistance; - props->RolloffFactor = source->RolloffFactor; + props->RolloffFactor = source->RolloffFactor +#ifdef ALSOFT_EAX + + source->RolloffFactor2 +#endif + ; props->Position = source->Position; props->Velocity = source->Velocity; props->Direction = source->Direction; @@ -5393,7 +5397,7 @@ void ALsource::eax_set_doppler_factor() void ALsource::eax_set_rolloff_factor() { - RolloffFactor = eax_.source.flRolloffFactor; + RolloffFactor2 = eax_.source.flRolloffFactor; } void ALsource::eax_set_room_rolloff_factor() |