Don't push the second srcreen.

This commit is contained in:
shenweip committed 2013-09-25 01:37:25 +08:00
1 parent a8692d36fe
commit b59636003d
2 files changed
+2 -2

No files matched your search

+2 -1
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(""));
}
}