Simplified code somewhat.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5723 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
7d5f69cf32
commit
5c00d7044a
@ -171,18 +171,9 @@ void FeatureUnlockedCutScene::init()
|
|||||||
{
|
{
|
||||||
if (m_unlocked_stuff[n].m_unlocked_kart != NULL)
|
if (m_unlocked_stuff[n].m_unlocked_kart != NULL)
|
||||||
{
|
{
|
||||||
KartModel* kartModel = m_unlocked_stuff[n].m_unlocked_kart->getKartModel();
|
KartModel* kart_model =
|
||||||
|
m_unlocked_stuff[n].m_unlocked_kart->getKartModel();
|
||||||
scene::ISceneNode* kart_node = irr_driver->getSceneManager()->addMeshSceneNode(kartModel->getModel());
|
kart_model->attachModel(&(m_unlocked_stuff[n].m_root_gift_node));
|
||||||
|
|
||||||
for (int w=0; w<4; w++)
|
|
||||||
{
|
|
||||||
scene::ISceneNode* wheel = irr_driver->getSceneManager()->addMeshSceneNode(kartModel->getWheelModel(w), kart_node);
|
|
||||||
wheel->setPosition( kartModel->getWheelGraphicsPosition(w).toIrrVector() );
|
|
||||||
wheel->updateAbsolutePosition();
|
|
||||||
}
|
|
||||||
|
|
||||||
m_unlocked_stuff[n].m_root_gift_node = kart_node;
|
|
||||||
}
|
}
|
||||||
else if (!m_unlocked_stuff[n].m_pictures.empty())
|
else if (!m_unlocked_stuff[n].m_pictures.empty())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user