Validate AI power in challenge
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12509 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
bfe2600986
commit
c51b746097
@ -438,6 +438,13 @@ bool ChallengeData::isChallengeFulfilled() const
|
||||
}
|
||||
// too slow
|
||||
if (m_time[d] > 0.0f && kart->getFinishTime() > m_time[d]) return false;
|
||||
|
||||
if (m_ai_superpower[d] != RaceManager::SUPERPOWER_NONE &&
|
||||
race_manager->getAISuperPower() != m_ai_superpower[d])
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
} // isChallengeFulfilled
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user