- fix issue 95
- unlocking new sets made easier
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-10-04 07:54:41 +00:00
parent 620ea034b8
commit 6a2f454e64

View File

@@ -104,7 +104,8 @@ void Credits::compute(Player * _p1, Player * _p2, GameApp * _app){
unlockedTex = resources.RetrieveTexture("set_unlocked.png", RETRIEVE_VRAM);
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){
JSample * sample = resources.RetrieveSample("bonus.wav");
@@ -234,7 +235,6 @@ int Credits::isRandomDeckUnlocked(){
}
int Credits::unlockRandomSet(){
if (rand() % 2) return 0;
int setId = rand() % MtgSets::SetsList->nb_items;
if (1 == options[Options::optionSet(setId)].number)