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:
parent
d68ac2b8ac
commit
ef49250a11
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user