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

View File

@@ -104,10 +104,10 @@ void Credits::compute(Player * _p1, Player * _p2, GameApp * _app){
unlockedTex = resources.RetrieveTexture("set_unlocked.png");
unlockedQuad = resources.RetrieveQuad("set_unlocked.png", 2, 2, 396, 96);
options[Options::optionSet(unlocked - 1)] = GameOption(1);
options.save();
options.save();
unlockedString = MtgSets::SetsList->values[unlocked -1];
}
if (unlocked){
if (unlocked && options[Options::SFXVOLUME].number > 0){
JSample * sample = resources.RetrieveSample("bonus.wav");
if (sample) JSoundSystem::GetInstance()->PlaySample(sample);
}