Quick fix for kart being shown unlocked again when completing a challenge at higher difficulty
This commit is contained in:
parent
81c4d3ed6f
commit
b05911fdbd
@ -278,8 +278,16 @@ void UnlockManager::findWhatWasUnlocked(int points_before, int points_now,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
for (unsigned int n = 0; n < unlocked.size(); n++)
|
||||
{
|
||||
//FIXME : this is a quick hack to avoid an unlocked kart being shown
|
||||
// several times when completing different difficulties of
|
||||
// a single-race challenge unlocking a kart.
|
||||
if ((points_now - points_before) <= 5)
|
||||
break;
|
||||
|
||||
std::vector<ChallengeData::UnlockableFeature> features = unlocked[n]->getFeatures();
|
||||
|
||||
for (unsigned int i = 0; i < features.size(); i++)
|
||||
|
Loading…
Reference in New Issue
Block a user