new battle layout
This commit is contained in:
@@ -68,6 +68,7 @@ bool RandomSample::LoadSoundDir( CString sDir, int iMaxToLoad )
|
||||
GetDirListing( sDir + "*.ogg", arraySoundFiles );
|
||||
GetDirListing( sDir + "*.wav", arraySoundFiles );
|
||||
|
||||
random_shuffle( arraySoundFiles.begin(), arraySoundFiles.end() );
|
||||
arraySoundFiles.resize( min( arraySoundFiles.size(), (unsigned)iMaxToLoad ) );
|
||||
|
||||
for( unsigned i=0; i<arraySoundFiles.size(); i++ )
|
||||
|
||||
Reference in New Issue
Block a user