don't show unused lights

This commit is contained in:
Chris Danford
2004-03-30 04:32:27 +00:00
parent 962870f6e3
commit 2aad42ab9b
4 changed files with 15 additions and 3 deletions
+7
View File
@@ -20,6 +20,13 @@
#include "InputMapper.h"
#include "PrefsManager.h"
int GameDef::GetNumGameplayButtons()
{
int iIndexOfStart = ButtonNameToIndex( "Start" );
ASSERT( iIndexOfStart != GAME_BUTTON_INVALID );
return iIndexOfStart;
}
GameButton GameDef::ButtonNameToIndex( const CString &sButtonName ) const
{
for( int i=0; i<m_iButtonsPerController; i++ )