Don't push the second srcreen.

This commit is contained in:
shenweip 2013-09-25 01:37:25 +08:00
parent a8692d36fe
commit b59636003d
2 changed files with 2 additions and 2 deletions

View File

@ -31,6 +31,7 @@
#include "UI/ui_atlas.h"
#include "UI/ControlMappingScreen.h"
#include "UI/UIShader.h"
#include "UI/GameSettingsScreen.h"
extern void DrawBackground(float alpha);
@ -218,7 +219,7 @@ void ControlMappingScreen::sendMessage(const char *message, const char *value) {
}
if (!strcmp(message, "settings")) {
UpdateUIState(UISTATE_MENU);
screenManager()->finishDialog(this, DR_OK);
screenManager()->push(new GameSettingsScreen(""));
}
}

View File

@ -560,7 +560,6 @@ void MainScreen::sendMessage(const char *message, const char *value) {
}
if (!strcmp(message, "control mapping")) {
UpdateUIState(UISTATE_MENU);
screenManager()->push(new GameSettingsScreen(""));
screenManager()->push(new ControlMappingScreen());
}
if (!strcmp(message, "settings")) {