mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-15 01:24:35 +02:00
#8 disable underwater camera sound for cutscenes
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user