Give more points when solving hard challenges

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11194 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2012-05-07 01:42:11 +00:00
parent 6a50f23ea0
commit f2cb7a8eac

View File

@ -60,7 +60,19 @@ void GameSlot::computeActive()
{
unlockFeature(i->second, RaceManager::RD_HARD, /*save*/ false);
}
m_points++;
if (i->second->isSolved(RaceManager::RD_HARD))
{
m_points += 10;
}
else if (i->second->isSolved(RaceManager::RD_MEDIUM))
{
m_points += 9;
}
else if (i->second->isSolved(RaceManager::RD_EASY))
{
m_points += 8;
}
}
else
{