From 72cc07eaa2a3599a329c54650f0a0dcde930d7de Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 25 Nov 2003 19:45:33 +0000 Subject: [PATCH] make MenuInputToGameInput behave like GameInputToMenuInput when no style is set --- stepmania/src/GameDef.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stepmania/src/GameDef.cpp b/stepmania/src/GameDef.cpp index 7782bbb241..57e5aba681 100644 --- a/stepmania/src/GameDef.cpp +++ b/stepmania/src/GameDef.cpp @@ -74,8 +74,12 @@ void GameDef::MenuInputToGameInput( MenuInput MenuI, GameInput GameIout[4] ) con GameIout[3].MakeInvalid(); GameController controller[2]; + StyleDef::StyleType type = StyleDef::TWO_PLAYERS_TWO_CREDITS; + if( GAMESTATE->m_CurStyle != STYLE_INVALID ) + type = GAMESTATE->GetCurrentStyleDef()->m_StyleType; + int iNumSidesUsing = 1; - switch( GAMESTATE->GetCurrentStyleDef()->m_StyleType ) + switch( type ) { case StyleDef::ONE_PLAYER_ONE_CREDIT: case StyleDef::TWO_PLAYERS_TWO_CREDITS: