Fixed #612 - camera staying behind after falling
To fix it, I copied what happens in explosion animation: reset the camera to normal when the animation gets removed (destroyed). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11118 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
eabc8bc8af
commit
03c8fc70fd
@ -79,6 +79,9 @@ RescueAnimation::~RescueAnimation()
|
||||
m_kart->getBody()->setLinearVelocity(btVector3(0,0,0));
|
||||
m_kart->getBody()->setAngularVelocity(btVector3(0,0,0));
|
||||
World::getWorld()->getPhysics()->addKart(m_kart);
|
||||
if (m_kart->getCamera() &&
|
||||
m_kart->getCamera()->getMode() != Camera::CM_FINAL)
|
||||
m_kart->getCamera()->setMode(Camera::CM_NORMAL);
|
||||
}
|
||||
} // ~RescueAnimation
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user