when loading characters, ignore the CVS directory.

This commit is contained in:
Thad Ward
2003-09-14 18:30:14 +00:00
parent 82ec98a0d1
commit 3b00a6da28
+7
View File
@@ -177,6 +177,13 @@ void GameState::ReloadCharacters()
GetDirListing( CHARACTERS_DIR "*", as, true, true );
for( i=0; i<as.size(); i++ )
{
CString sCharName, sDummy;
splitpath(as[i], sDummy, sCharName, sDummy);
sCharName.MakeLower();
if( sCharName == "cvs" ) // the directory called "CVS"
continue; // ignore it
Character* pChar = new Character;
if( pChar->Load( as[i] ) )
m_pCharacters.push_back( pChar );