Fixed feature unlocked 'continue' button when playing from a GP
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4891 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
17d01a88e4
commit
7c2d181fc4
@ -1,5 +1,5 @@
|
||||
<stkgui>
|
||||
|
||||
<button id="back" x="20" y="-40" width="250" height="35" align="left" text="Continue"/>
|
||||
<button id="continue" x="20" y="-40" width="250" height="35" align="left" text="Continue"/>
|
||||
|
||||
</stkgui>
|
@ -154,9 +154,6 @@ void FeatureUnlockedCutScene::tearDown()
|
||||
irr_driver->removeNode(m_root_gift_node);
|
||||
m_root_gift_node = NULL;
|
||||
}
|
||||
|
||||
// this is called maybe in the middle of a GP, so ask the race manager to continue
|
||||
race_manager->next();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------------------
|
||||
@ -264,7 +261,7 @@ void FeatureUnlockedCutScene::eventCallback(GUIEngine::Widget* widget,
|
||||
if (race_manager->getMajorMode() == RaceManager::MAJOR_MODE_GRAND_PRIX)
|
||||
{
|
||||
// in GP mode, continue GP after viewing this screen (TODO: test)
|
||||
World::getWorld()->unpause();
|
||||
StateManager::get()->popMenu();
|
||||
race_manager->next();
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user