Jeck - Fix to issue 136, which caused the "unlocked set/mode" noise to play regardless of SFX volume.

This commit is contained in:
wagic.jeck
2009-10-25 07:19:42 +00:00
parent 638d3940ca
commit cc0b67fb17
+1 -1
View File
@@ -107,7 +107,7 @@ void Credits::compute(Player * _p1, Player * _p2, GameApp * _app){
options.save(); options.save();
unlockedString = MtgSets::SetsList->values[unlocked -1]; unlockedString = MtgSets::SetsList->values[unlocked -1];
} }
if (unlocked){ if (unlocked && options[Options::SFXVOLUME].number > 0){
JSample * sample = resources.RetrieveSample("bonus.wav"); JSample * sample = resources.RetrieveSample("bonus.wav");
if (sample) JSoundSystem::GetInstance()->PlaySample(sample); if (sample) JSoundSystem::GetInstance()->PlaySample(sample);
} }