mirror of
https://github.com/Cesarus85/ringfall-mjolnir-vr.git
synced 2026-10-17 14:00:25 +02:00
Some maps' sounds have gain modifiers above 1 (foundation's Reach sniper rifle fire, 1.5; ten on Hornet's Nest). The game asserted on them (a halt in a debug build; in a release build the volume went on to assert again in dsound_volume_from_gain); it now clamps the gain to 1, as Halo PC plays them. Written for OpenCE's dsound_channel_set_properties: the original change only joined a 32-bit build to its 64-bit build's clamp, which OpenCE does not have. (cherry picked from commit 312960464ca0868746bfea19eb004635a5acbb8e)