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