[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:
@@ -11,6 +11,7 @@ StepMania 5.0 Preview 2 | 20110???
|
|||||||
2011/06/04
|
2011/06/04
|
||||||
----------
|
----------
|
||||||
* Changed default MusicWheelSwitchSpeed to 15 (was 10). [AJ]
|
* 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
|
StepMania 5.0 Preview 1a | 20110603
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ void AnnouncerManager::GetAnnouncerNames( vector<RString>& AddTo )
|
|||||||
|
|
||||||
// strip out the empty announcer folder
|
// strip out the empty announcer folder
|
||||||
for( int i=AddTo.size()-1; i>=0; i-- )
|
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 );
|
AddTo.erase(AddTo.begin()+i, AddTo.begin()+i+1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ bool AnnouncerManager::DoesAnnouncerExist( RString sAnnouncerName )
|
|||||||
vector<RString> asAnnouncerNames;
|
vector<RString> asAnnouncerNames;
|
||||||
GetAnnouncerNames( asAnnouncerNames );
|
GetAnnouncerNames( asAnnouncerNames );
|
||||||
for( unsigned i=0; i<asAnnouncerNames.size(); i++ )
|
for( unsigned i=0; i<asAnnouncerNames.size(); i++ )
|
||||||
if( sAnnouncerName.EqualsNoCase(asAnnouncerNames[i]) )
|
if( 0==stricmp(sAnnouncerName, asAnnouncerNames[i]) )
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user