Bugfix: the target energy indicator in challenges in which nitro must

be collected didn't work.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2964 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2009-01-18 23:45:32 +00:00
parent d68ac2b8ac
commit ef49250a11
2 changed files with 3 additions and 0 deletions

View File

@ -226,6 +226,7 @@ void ChallengeData::setRace() const
race_manager->setNumLaps(m_num_laps);
race_manager->setNumKarts(m_num_karts);
race_manager->setNumPlayers(1);
race_manager->setCoinTarget(m_energy);
}
else // GP
{

View File

@ -315,6 +315,8 @@ void RaceOptions::setAllValues()
race_manager->setNumLaps( m_num_laps );
user_config->setDefaultNumLaps(m_num_laps);
}
// Might still be set from a previous challenge
race_manager->setCoinTarget(0);
} // setAllValues
// ----------------------------------------------------------------------------