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:
auria 2009-06-26 00:40:18 +00:00
parent 5b5d4f3ee9
commit 708b65b0af

View File

@ -248,8 +248,11 @@ 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
@ -272,6 +275,11 @@ void TrackInfoDialog::onEnterPressedInternal()
race_manager->startNew();
}
void TrackInfoDialog::onEnterPressedInternal()
{
startGame();
}
PlayerInfoDialog::PlayerInfoDialog(Player* player, const float w, const float h) : ModalDialog(w, h)