Fix #1841
This commit is contained in:
parent
e3cf054ea7
commit
2d1d912ee8
@ -62,7 +62,7 @@ const float KARTS_DELTA_Y = -0.55f;
|
||||
const float KARTS_INITIAL_Z = -10.0f;
|
||||
const float KARTS_DEST_Z = -1.8f;
|
||||
const float INITIAL_Y = 0.0f;
|
||||
const float INITIAL_PODIUM_Y = -1.27f;
|
||||
const float INITIAL_PODIUM_Y = -1.33f;
|
||||
const float PODIUM_HEIGHT[3] = { 0.650f, 1.0f, 0.30f };
|
||||
|
||||
DEFINE_SCREEN_SINGLETON( GrandPrixWin );
|
||||
@ -231,6 +231,7 @@ void GrandPrixWin::onUpdate(float dt)
|
||||
m_kart_node[k]->move(kart_pos, kart_rot, kart_scale, false, true);
|
||||
|
||||
core::vector3df podium_pos = m_podium_steps[k]->getInitXYZ();
|
||||
podium_pos.Y = INITIAL_PODIUM_Y;
|
||||
core::vector3df podium_rot(0, m_kart_rotation[k], 0);
|
||||
m_podium_steps[k]->move(podium_pos, podium_rot, core::vector3df(1.0f, 1.0f, 1.0f), false, true);
|
||||
|
||||
@ -342,6 +343,13 @@ void GrandPrixWin::setKarts(const std::string idents_arg[3])
|
||||
}
|
||||
}
|
||||
|
||||
for (int k=0; k<3; k++)
|
||||
{
|
||||
core::vector3df podium_pos = m_podium_steps[k]->getInitXYZ();
|
||||
podium_pos.Y = INITIAL_PODIUM_Y;
|
||||
m_podium_steps[k]->move(podium_pos, core::vector3df(0, 0, 0), core::vector3df(1.0f, 1.0f, 1.0f), false, true);
|
||||
}
|
||||
|
||||
assert(m_podium_steps[0] != NULL);
|
||||
assert(m_podium_steps[1] != NULL);
|
||||
assert(m_podium_steps[2] != NULL);
|
||||
|
@ -245,7 +245,7 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
|
||||
race_manager->setMinorMode(RaceManager::MINOR_MODE_CUTSCENE);
|
||||
race_manager->setNumKarts( 0 );
|
||||
race_manager->setNumPlayers(0);
|
||||
race_manager->setNumLocalPlayers(0);
|
||||
race_manager->setNumPlayers(0);
|
||||
race_manager->startSingleRace("endcutscene", 999, false);
|
||||
|
||||
std::vector<std::string> parts;
|
||||
@ -268,7 +268,7 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
|
||||
race_manager->setMinorMode(RaceManager::MINOR_MODE_CUTSCENE);
|
||||
race_manager->setNumKarts(0);
|
||||
race_manager->setNumPlayers(0);
|
||||
race_manager->setNumLocalPlayers(0);
|
||||
race_manager->setNumPlayers(0);
|
||||
race_manager->startSingleRace("gpwin", 999, false);
|
||||
GrandPrixWin* scene = GrandPrixWin::getInstance();
|
||||
scene->push();
|
||||
@ -281,7 +281,7 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
|
||||
race_manager->setMinorMode(RaceManager::MINOR_MODE_CUTSCENE);
|
||||
race_manager->setNumKarts(0);
|
||||
race_manager->setNumPlayers(0);
|
||||
race_manager->setNumLocalPlayers(0);
|
||||
race_manager->setNumPlayers(0);
|
||||
race_manager->startSingleRace("gplose", 999, false);
|
||||
GrandPrixLose* scene = GrandPrixLose::getInstance();
|
||||
scene->push();
|
||||
@ -302,7 +302,7 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
|
||||
race_manager->setMinorMode(RaceManager::MINOR_MODE_CUTSCENE);
|
||||
race_manager->setNumKarts(0);
|
||||
race_manager->setNumPlayers(0);
|
||||
race_manager->setNumLocalPlayers(0);
|
||||
race_manager->setNumPlayers(0);
|
||||
race_manager->startSingleRace("featunlocked", 999, false);
|
||||
|
||||
FeatureUnlockedCutScene* scene =
|
||||
@ -355,7 +355,7 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
|
||||
race_manager->setMinorMode(RaceManager::MINOR_MODE_CUTSCENE);
|
||||
race_manager->setNumKarts(0);
|
||||
race_manager->setNumPlayers(0);
|
||||
race_manager->setNumLocalPlayers(0);
|
||||
race_manager->setNumPlayers(0);
|
||||
race_manager->startSingleRace("introcutscene", 999, false);
|
||||
|
||||
std::vector<std::string> parts;
|
||||
@ -372,7 +372,7 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
|
||||
race_manager->setMinorMode(RaceManager::MINOR_MODE_CUTSCENE);
|
||||
race_manager->setNumKarts(0);
|
||||
race_manager->setNumPlayers(0);
|
||||
race_manager->setNumLocalPlayers(0);
|
||||
race_manager->setNumPlayers(0);
|
||||
race_manager->startSingleRace("endcutscene", 999, false);
|
||||
|
||||
std::vector<std::string> parts;
|
||||
|
Loading…
Reference in New Issue
Block a user