Fixed incorrect animation in case of a GP challenge (#815).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12097 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
caaccaf9c3
commit
70afa12d49
@ -780,7 +780,10 @@ void Kart::finishedRace(float time)
|
||||
m_controller));
|
||||
GameSlot *slot = unlock_manager->getCurrentSlot();
|
||||
const Challenge *challenge = slot->getCurrentChallenge();
|
||||
if(challenge)
|
||||
// In case of a GP challenge don't make the end animation depend
|
||||
// on if the challenge is fulfilled
|
||||
if(challenge && !challenge->getData()->getMajorMode()
|
||||
==RaceManager::MAJOR_MODE_GRAND_PRIX)
|
||||
{
|
||||
if(challenge->getData()->isChallengeFulfilled())
|
||||
m_kart_model->setAnimation(KartModel::AF_WIN_START);
|
||||
|
Loading…
x
Reference in New Issue
Block a user