From 14b57d3833a98021c1ef3c89640191edc91fb6e8 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 31 Oct 2005 03:34:05 +0000 Subject: [PATCH] return components in GetCurrentStepsCredits, not formatted --- stepmania/src/GameState.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index a6b50a24a5..22e26ad166 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -2074,16 +2074,15 @@ public: return 0; // use a vector and not a set so that ordering is maintained - vector vpStepsToShow; + vector vpStepsToShow; FOREACH_HumanPlayer( p ) { - Steps* pSteps = GAMESTATE->m_pCurSteps[p]; + const Steps* pSteps = GAMESTATE->m_pCurSteps[p]; bool bAlreadyAdded = find( vpStepsToShow.begin(), vpStepsToShow.end(), pSteps ) != vpStepsToShow.end(); if( !bAlreadyAdded ) vpStepsToShow.push_back( pSteps ); } - CString s; for( unsigned i=0; iGetDescription(); + lua_pushstring( L, sDifficulty ); + lua_pushstring( L, pSteps->GetDescription() ); } - lua_pushstring( L, s ); - return 1; + return vpStepsToShow.size()*2; }