[AnnouncerManager] Fixed a bug where no announcers would be loaded.

revision 750b688 seems to have caused more problems than it solved.
This commit is contained in:
AJ Kelly
2011-06-04 17:16:28 -05:00
parent 2870d90dff
commit 8db68f9b1c
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -11,6 +11,7 @@ StepMania 5.0 Preview 2 | 20110???
2011/06/04
----------
* Changed default MusicWheelSwitchSpeed to 15 (was 10). [AJ]
* [AnnouncerManager] Fixed a bug where no announcers would be loaded. [AJ]
================================================================================
StepMania 5.0 Preview 1a | 20110603
+2 -2
View File
@@ -37,7 +37,7 @@ void AnnouncerManager::GetAnnouncerNames( vector<RString>& AddTo )
// strip out the empty announcer folder
for( int i=AddTo.size()-1; i>=0; i-- )
if( !AddTo[i].EqualsNoCase( EMPTY_ANNOUNCER_NAME ) )
if( !stricmp( AddTo[i], EMPTY_ANNOUNCER_NAME ) )
AddTo.erase(AddTo.begin()+i, AddTo.begin()+i+1 );
}
@@ -49,7 +49,7 @@ bool AnnouncerManager::DoesAnnouncerExist( RString sAnnouncerName )
vector<RString> asAnnouncerNames;
GetAnnouncerNames( asAnnouncerNames );
for( unsigned i=0; i<asAnnouncerNames.size(); i++ )
if( sAnnouncerName.EqualsNoCase(asAnnouncerNames[i]) )
if( 0==stricmp(sAnnouncerName, asAnnouncerNames[i]) )
return true;
return false;
}