Jeck - Bugfix: repaired set unlocking.
* Checks for unlocked sets /after/ they've finished loading.
This commit is contained in:
@@ -92,8 +92,9 @@ int Options::getID(string name){
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Is it an unlocked set?
|
//Is it an unlocked set?
|
||||||
|
string setname = name.substr(strlen("unlocked_"));
|
||||||
if(MtgSets::SetsList){
|
if(MtgSets::SetsList){
|
||||||
int unlocked = MtgSets::SetsList->find(name);
|
int unlocked = MtgSets::SetsList->find(setname);
|
||||||
if(unlocked != -1)
|
if(unlocked != -1)
|
||||||
return Options::optionSet(unlocked);
|
return Options::optionSet(unlocked);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -324,6 +324,8 @@ void GameStateMenu::Update(float dt)
|
|||||||
}else{
|
}else{
|
||||||
currentState = MENU_STATE_MAJOR_FIRST_TIME | MENU_STATE_MINOR_NONE;
|
currentState = MENU_STATE_MAJOR_FIRST_TIME | MENU_STATE_MINOR_NONE;
|
||||||
}
|
}
|
||||||
|
//Reload list of unlocked sets, now that we know about the sets.
|
||||||
|
options.reloadProfile();
|
||||||
|
|
||||||
//List active profile and database size.
|
//List active profile and database size.
|
||||||
PlayerData * playerdata = NEW PlayerData(mParent->collection);
|
PlayerData * playerdata = NEW PlayerData(mParent->collection);
|
||||||
|
|||||||
Reference in New Issue
Block a user