Skip to content

Commit af0a8ec

Browse files
authored
Merge pull request #414 from NVlabs/AudioDisableFix
Don't load weapon sounds if audio disabled
2 parents dfd2657 + c653372 commit af0a8ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/FPSciApp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ void FPSciApp::updateConfigParameters(const shared_ptr<FpsConfig> config, const
779779

780780
// Update weapon model (if drawn) and sounds
781781
weapon->loadModels();
782-
weapon->loadSounds();
782+
if(startupConfig.audioEnable) weapon->loadSounds();
783783
if (!config->audio.sceneHitSound.empty()) {
784784
m_sceneHitSound = Sound::create(System::findDataFile(config->audio.sceneHitSound));
785785
// Play silently to pre-load the sound

0 commit comments

Comments
 (0)