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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user