more reverting of the case checking stuff

This commit is contained in:
AJ Kelly
2011-06-05 00:45:52 -05:00
parent 785a9f93a5
commit 17d2423ee4
+1 -1
View File
@@ -948,7 +948,7 @@ MultiPlayer InputMapper::InputDeviceToMultiPlayer( InputDevice id )
GameButton InputScheme::ButtonNameToIndex( const RString &sButtonName ) const
{
for( GameButton gb=(GameButton) 0; gb<m_iButtonsPerController; gb=(GameButton)(gb+1) )
if( sButtonName.EqualsNoCase(GetGameButtonName(gb)) )
if( stricmp(GetGameButtonName(gb), sButtonName) == 0 )
return gb;
return GameButton_Invalid;