Go back to the correct screen when backing out of the options

menu in oni/endless.
This commit is contained in:
Glenn Maynard
2002-08-24 02:46:09 +00:00
parent 9ef1b27c4a
commit 31075451d6
2 changed files with 13 additions and 4 deletions
+6 -1
View File
@@ -24,6 +24,7 @@
#include "GameManager.h"
#include "GameState.h"
#include "RageSound.h"
#include "ScreenSelectCourse.h"
enum {
@@ -131,7 +132,11 @@ void ScreenPlayerOptions::ExportOptions()
void ScreenPlayerOptions::GoToPrevState()
{
SCREENMAN->SetNewScreen( new ScreenSelectMusic );
if(GAMESTATE->m_PlayMode == PLAY_MODE_ONI ||
GAMESTATE->m_PlayMode == PLAY_MODE_ENDLESS)
SCREENMAN->SetNewScreen( new ScreenSelectCourse );
else
SCREENMAN->SetNewScreen( new ScreenSelectMusic );
}
void ScreenPlayerOptions::GoToNextState()