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,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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user