diff --git a/src/ScreenOptions.cpp b/src/ScreenOptions.cpp index 7a28f05b3e..f124ab1a99 100644 --- a/src/ScreenOptions.cpp +++ b/src/ScreenOptions.cpp @@ -1308,6 +1308,19 @@ void ScreenOptions::MenuUpDown( const InputEventPlus &input, int iDir ) } } +/* +void ScreenOptions::SetOptionRowFromName( RString nombre ) + { + FOREACH_PlayerNumber( pn ) + { + for( unsigned i=0; iGetRowTitle() == nombre) && m_pRows[i]->GetRowDef().IsEnabledForPlayer(p) ) + MoveRowAbsolute(pn,i) + } + } + } +*/ // lua start #include "LuaBinding.h" @@ -1326,20 +1339,7 @@ public: lua_pushnil( L ); return 1; } - - /*FSX's WIP code, touch if it's wrong (which it probably is) - static int SetOptionRowFromName( T* p, lua_State *L ) - { - FOREACH_PlayerNumber( pn ) - { - for( unsigned i=0; iGetRowTitle() == SArg(1) && m_pRows[i]->GetRowDef().IsEnabledForPlayer(p) ) - p->MoveRowAbsolute(pn,i) - } - } - } - */ + //static int SetOptionRowFromName( T* p, lua_State *L ) { p->SetOptionRowFromName( SArg(1) ); return 0; } LunaScreenOptions() {