mirror of
https://github.com/XProger/OpenLara.git
synced 2025-02-24 23:42:49 +01:00
#8 disable underwater camera sound for cutscenes
This commit is contained in:
parent
4e087ab177
commit
584ee9f2d3
@ -1528,7 +1528,7 @@ struct Level : IGame {
|
||||
|
||||
// underwater ambient sound volume control
|
||||
if (camera->isUnderwater()) {
|
||||
if (!sndWater) {
|
||||
if (!sndWater && !level.isCutsceneLevel()) {
|
||||
sndWater = playSound(TR::SND_UNDERWATER, vec3(0.0f), Sound::LOOP | Sound::MUSIC);
|
||||
if (sndWater)
|
||||
sndWater->volume = sndWater->volumeTarget = 0.0f;
|
||||
|
Loading…
x
Reference in New Issue
Block a user