From fc9a51b7f4a8765a175a8cce4f9978f4572dcd79 Mon Sep 17 00:00:00 2001 From: "auria.mg" Date: Fri, 16 Dec 2016 20:33:30 -0500 Subject: [PATCH] Reset cameras when resetting 3 strikes battle. Fixes #2687 --- src/modes/three_strikes_battle.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modes/three_strikes_battle.cpp b/src/modes/three_strikes_battle.cpp index 2e5c1d9e1..bf5a07bc0 100644 --- a/src/modes/three_strikes_battle.cpp +++ b/src/modes/three_strikes_battle.cpp @@ -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& children = kart_node->getChildren();