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:
parent
c68d8cebb2
commit
9724be6622
@ -198,6 +198,10 @@ void FeatureUnlockedCutScene::init()
|
|||||||
m_unlocked_stuff[n].m_unlocked_kart->getKartModelCopy();
|
m_unlocked_stuff[n].m_unlocked_kart->getKartModelCopy();
|
||||||
m_all_kart_models.push_back(kart_model);
|
m_all_kart_models.push_back(kart_model);
|
||||||
kart_model->attachModel(&(m_unlocked_stuff[n].m_root_gift_node));
|
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
|
#ifdef DEBUG
|
||||||
m_unlocked_stuff[n].m_root_gift_node->setName("unlocked kart");
|
m_unlocked_stuff[n].m_root_gift_node->setName("unlocked kart");
|
||||||
#endif
|
#endif
|
||||||
|
@ -295,11 +295,14 @@ void GrandPrixLose::setKarts(std::vector<std::string> ident_arg)
|
|||||||
kart_main_node->updateAbsolutePosition();
|
kart_main_node->updateAbsolutePosition();
|
||||||
kart_main_node->setRotation(vector3df(0, 90, 0));
|
kart_main_node->setRotation(vector3df(0, 90, 0));
|
||||||
kart_model->setAnimation(KartModel::AF_DEFAULT);
|
kart_model->setAnimation(KartModel::AF_DEFAULT);
|
||||||
|
float susp[4]={0,0,0,0};
|
||||||
|
kart_model->update(0.0f, 0.0f, susp);
|
||||||
} // if kart !=NULL
|
} // if kart !=NULL
|
||||||
|
|
||||||
m_kart_node[n] = kart_main_node;
|
m_kart_node[n] = kart_main_node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
const int w = UserConfigParams::m_width;
|
const int w = UserConfigParams::m_width;
|
||||||
const int h = UserConfigParams::m_height;
|
const int h = UserConfigParams::m_height;
|
||||||
|
|
||||||
@ -330,6 +333,7 @@ void GrandPrixLose::setKarts(std::vector<std::string> ident_arg)
|
|||||||
default:
|
default:
|
||||||
assert(false);
|
assert(false);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
} // setKarts
|
} // setKarts
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ class GrandPrixLose : public GUIEngine::Screen, public GUIEngine::ScreenSingleto
|
|||||||
|
|
||||||
MusicInformation* m_music;
|
MusicInformation* m_music;
|
||||||
|
|
||||||
irr::core::recti m_viewport[4];
|
//irr::core::recti m_viewport[4];
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user