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:
auria 2012-03-29 01:58:00 +00:00
parent ffe317f2f3
commit ea648e1061

View File

@ -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
//-----------------------------------------------------------------------------