diff --git a/src/states_screens/feature_unlocked.cpp b/src/states_screens/feature_unlocked.cpp index 1c7a8a079..d0b2d4b68 100644 --- a/src/states_screens/feature_unlocked.cpp +++ b/src/states_screens/feature_unlocked.cpp @@ -198,6 +198,10 @@ void FeatureUnlockedCutScene::init() m_unlocked_stuff[n].m_unlocked_kart->getKartModelCopy(); m_all_kart_models.push_back(kart_model); kart_model->attachModel(&(m_unlocked_stuff[n].m_root_gift_node)); + kart_model->setAnimation(KartModel::AF_DEFAULT); + float susp[4]={0,0,0,0}; + kart_model->update(0.0f, 0.0f, susp); + #ifdef DEBUG m_unlocked_stuff[n].m_root_gift_node->setName("unlocked kart"); #endif diff --git a/src/states_screens/grand_prix_lose.cpp b/src/states_screens/grand_prix_lose.cpp index a1daa2d18..d70062a6b 100644 --- a/src/states_screens/grand_prix_lose.cpp +++ b/src/states_screens/grand_prix_lose.cpp @@ -295,11 +295,14 @@ void GrandPrixLose::setKarts(std::vector ident_arg) kart_main_node->updateAbsolutePosition(); kart_main_node->setRotation(vector3df(0, 90, 0)); kart_model->setAnimation(KartModel::AF_DEFAULT); + float susp[4]={0,0,0,0}; + kart_model->update(0.0f, 0.0f, susp); } // if kart !=NULL m_kart_node[n] = kart_main_node; } + /* const int w = UserConfigParams::m_width; const int h = UserConfigParams::m_height; @@ -330,6 +333,7 @@ void GrandPrixLose::setKarts(std::vector ident_arg) default: assert(false); } + */ } // setKarts diff --git a/src/states_screens/grand_prix_lose.hpp b/src/states_screens/grand_prix_lose.hpp index 3ca7e27ac..c26b49cdb 100644 --- a/src/states_screens/grand_prix_lose.hpp +++ b/src/states_screens/grand_prix_lose.hpp @@ -49,7 +49,7 @@ class GrandPrixLose : public GUIEngine::Screen, public GUIEngine::ScreenSingleto MusicInformation* m_music; - irr::core::recti m_viewport[4]; + //irr::core::recti m_viewport[4]; public: