Skip to content

Commit

Permalink
Merge pull request #414 from NVlabs/AudioDisableFix
Browse files Browse the repository at this point in the history
Don't load weapon sounds if audio disabled
  • Loading branch information
jspjutNV committed Jan 14, 2023
2 parents dfd2657 + c653372 commit af0a8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/FPSciApp.cpp
Expand Up @@ -779,7 +779,7 @@ void FPSciApp::updateConfigParameters(const shared_ptr<FpsConfig> config, const

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

0 comments on commit af0a8ec

Please sign in to comment.