Fixed pressing escape in-game
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3654 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
5b5d4f3ee9
commit
708b65b0af
@ -248,15 +248,18 @@ TrackInfoDialog::TrackInfoDialog(const char* trackName, ITexture* screenshot, co
|
||||
|
||||
// ------------------------------------------------------------------------------------------------------
|
||||
|
||||
void TrackInfoDialog::onEnterPressedInternal()
|
||||
// FIXME : this probably doesn't belong here
|
||||
void startGame()
|
||||
{
|
||||
ModalDialog::dismiss();
|
||||
|
||||
IVideoDriver* driver = GUIEngine::getDriver();
|
||||
|
||||
// TODO : draw a loading screen
|
||||
driver->endScene();
|
||||
driver->beginScene(true, false);
|
||||
driver->endScene();
|
||||
|
||||
|
||||
|
||||
StateManager::enterGameState();
|
||||
//race_manager->setDifficulty(RaceManager::RD_HARD);
|
||||
@ -268,9 +271,14 @@ void TrackInfoDialog::onEnterPressedInternal()
|
||||
race_manager->setNumLocalPlayers( 1 );
|
||||
network_manager->setupPlayerKartInfo();
|
||||
//race_manager->getKartType(1) = KT_PLAYER;
|
||||
|
||||
|
||||
race_manager->startNew();
|
||||
}
|
||||
|
||||
void TrackInfoDialog::onEnterPressedInternal()
|
||||
{
|
||||
startGame();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user