Reset cameras when resetting 3 strikes battle. Fixes #2687
This commit is contained in:
parent
5f0a65a07b
commit
fc9a51b7f4
@ -117,6 +117,9 @@ void ThreeStrikesBattle::reset()
|
|||||||
// no positions in this mode
|
// no positions in this mode
|
||||||
m_karts[n]->setPosition(-1);
|
m_karts[n]->setPosition(-1);
|
||||||
|
|
||||||
|
Camera *camera = Camera::getCamera(n);
|
||||||
|
camera->setKart(m_karts[n]);
|
||||||
|
|
||||||
scene::ISceneNode* kart_node = m_karts[n]->getNode();
|
scene::ISceneNode* kart_node = m_karts[n]->getNode();
|
||||||
|
|
||||||
core::list<scene::ISceneNode*>& children = kart_node->getChildren();
|
core::list<scene::ISceneNode*>& children = kart_node->getChildren();
|
||||||
|
Loading…
Reference in New Issue
Block a user