Jeck - Fixes for how options handle first boot, should resolve trophy room issue (no unlocked set on first boot).

This commit is contained in:
wagic.jeck
2009-12-13 15:00:53 +00:00
parent 61f38b7494
commit b766dd6e4a
5 changed files with 40 additions and 39 deletions

View File

@@ -65,24 +65,10 @@ void GameStateShop::load(){
int nbsets = 0;
int nbboostersets = 0;
//Unlock a default set if no set is unlocked
int ok = 0;
int defaultSet = 0;
for (int i = 0; i < setlist.size(); i++){
if (setlist[i].compare("10E") == 0) defaultSet = i;
//Figure out which sets are available.
for (int i = 0; i < setlist.size(); i++){
unlocked[i] = options[Options::optionSet(i)].number;
if (unlocked[i])
ok = 1;
}
if (!ok){
unlocked[defaultSet] = 1;
options[Options::optionSet(defaultSet)] = GameOption(1);
options.save();
}
for (int i = 0; i < setlist.size(); i++){
if (unlocked[i]){
sets[nbsets] = i;