Reset cameras when resetting 3 strikes battle. Fixes #2687

This commit is contained in:
auria.mg 2016-12-16 20:33:30 -05:00
parent 5f0a65a07b
commit fc9a51b7f4

View File

@ -117,6 +117,9 @@ void ThreeStrikesBattle::reset()
// no positions in this mode
m_karts[n]->setPosition(-1);
Camera *camera = Camera::getCamera(n);
camera->setKart(m_karts[n]);
scene::ISceneNode* kart_node = m_karts[n]->getNode();
core::list<scene::ISceneNode*>& children = kart_node->getChildren();