Remove unused code + fixed wrong animation frame used on feature unlocked screen + fixed karts looking left on GP lose screen

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6480 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-11-09 16:00:21 +00:00
parent c68d8cebb2
commit 9724be6622
3 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -295,11 +295,14 @@ void GrandPrixLose::setKarts(std::vector<std::string> 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<std::string> ident_arg)
default:
assert(false);
}
*/
} // setKarts

View File

@ -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: