Fixed animation in GP end screen (where karts would
always look to their right). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6275 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -116,6 +116,7 @@ void KartModel::loadInfo(const XMLNode &node)
|
||||
loadWheelInfo(*wheels_node, "rear-left", 3);
|
||||
}
|
||||
} // loadInfo
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
/** Destructor.
|
||||
*/
|
||||
@@ -356,6 +357,7 @@ void KartModel::setAnimation(AnimationFrameType type)
|
||||
m_animated_node->setFrameLoop(m_animation_frame[AF_RIGHT],
|
||||
m_animation_frame[AF_LEFT] );
|
||||
m_animated_node->setAnimationEndCallback(NULL);
|
||||
m_animated_node->setAnimationSpeed(0);
|
||||
}
|
||||
else if(m_animation_frame[type]>-1)
|
||||
{
|
||||
@@ -370,7 +372,7 @@ void KartModel::setAnimation(AnimationFrameType type)
|
||||
m_animated_node->setLoopMode(false);
|
||||
m_animated_node->setAnimationEndCallback(this);
|
||||
}
|
||||
} // setEndAnimation
|
||||
} // setAnimation
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
/** Called from irrlicht when a non-looped animation ends. This is used to
|
||||
|
||||
Reference in New Issue
Block a user