Lock tracks in the GUI when user doesn;t have engouh points
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11049 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
ffe317f2f3
commit
ea648e1061
@ -89,7 +89,19 @@ void GameSlot::computeActive()
|
||||
i->second->setActive(RaceManager::RD_EASY);
|
||||
}
|
||||
} // for i
|
||||
|
||||
// now we have the number of points. Actually lock the tracks
|
||||
for (i = m_challenges_state.begin(); i != m_challenges_state.end(); i++)
|
||||
{
|
||||
if (m_points < i->second->getData()->getNumTrophies())
|
||||
{
|
||||
m_locked_features[i->second->getData()->getTrackId()] = true;
|
||||
}
|
||||
}
|
||||
|
||||
clearUnlocked();
|
||||
|
||||
|
||||
} // computeActive
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user