Reset bubblegum effect on restart

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11677 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2012-10-13 00:18:54 +00:00
parent a8adde409d
commit c7d352346e

View File

@@ -305,6 +305,14 @@ void Kart::reset()
// Reset animations and wheels
m_kart_model->reset();
// undo bubblegum effect
if (m_bubblegum_time > 0.0f)
{
m_bubblegum_time = 0.0f;
m_body->setDamping(m_kart_properties->getChassisLinearDamping(),
m_kart_properties->getChassisAngularDamping() );
}
// If the controller was replaced (e.g. replaced by end controller),
// restore the original controller.
if(m_saved_controller)