fix debug

This commit is contained in:
Glenn Maynard
2007-06-11 18:59:14 +00:00
parent a610ba3c9f
commit d96b59d1af
@@ -30,14 +30,11 @@ void LightsDriver_SystemMessage::Set( const LightsState *ls )
} }
s += "\n"; s += "\n";
int iNumGameButtonsToShow = INPUTMAPPER->GetInputScheme()->ButtonNameToIndex( "Start" ); int iNumGameButtonsToShow = INPUTMAPPER->GetInputScheme()->m_iButtonsPerController;
if( iNumGameButtonsToShow == GameButton_Invalid )
iNumGameButtonsToShow = INPUTMAPPER->GetInputScheme()->m_iButtonsPerController;
FOREACH_GameController( gc ) FOREACH_GameController( gc )
{ {
s += ssprintf("Controller%d: ",gc+1); s += ssprintf("Controller%d: ",gc+1);
for( int gb=0; gb<iNumGameButtonsToShow; gb++ ) for( int gb=GAME_BUTTON_CUSTOM_01; gb<iNumGameButtonsToShow; gb++ )
{ {
s += ls->m_bGameButtonLights[gc][gb] ? '1' : '0'; s += ls->m_bGameButtonLights[gc][gb] ? '1' : '0';
} }