From ba65be23352011737402c7ecbb3ab019c117ca92 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Fri, 13 May 2011 00:40:10 -0400 Subject: [PATCH] [splittiming] Don't show routine key on non. Hmm...does mercurial offer a cherry pick command? --- src/ScreenEdit.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ScreenEdit.cpp b/src/ScreenEdit.cpp index 5e32eae172..0a6e8a2a4a 100644 --- a/src/ScreenEdit.cpp +++ b/src/ScreenEdit.cpp @@ -4328,6 +4328,13 @@ void ScreenEdit::DoHelp() RString sButtons = GetDeviceButtonsLocalized( hl.veb, m_EditMappingsDeviceInput ); RString sDescription = THEME->GetString( "EditHelpDescription", hl.szEnglishDescription ); + + // TODO: Better way of hiding routine only key on non-routine. + if( sDescription.Left(13) == "Switch player" && m_InputPlayerNumber == PLAYER_INVALID ) + { + continue; + } + g_EditHelp.rows.push_back( MenuRowDef( -1, sDescription, false, EditMode_Practice, false, false, 0, sButtons ) ); }