Removed compiler warnings.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4805 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-02-22 22:08:19 +00:00
parent a7629f7b1d
commit f4a830fed4

View File

@ -196,15 +196,10 @@ void SlipStream::update(float dt)
m_node->setRotation(r);
return;
// Smooth the rotation: take 80% of old rotation, 20% of new:
float weight_old = 0.5f;
const core::vector3df &new_rotation = m_kart->getNode()->getRotation();
const core::quaternion new_rot(m_kart->getNode()->getRotation());
const core::quaternion old_rot(m_node->getRotation() );
core::quaternion interpo;
//interpo.slerp(new_rot, old_rot, weight_old);
core::vector3df interp;
new_rot.toEuler(interp);
m_node->setRotation(interp);