Jeck - Fix to issue 136, which caused the "unlocked set/mode" noise to play regardless of SFX volume.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user