This commit is contained in:
Chris Danford
2004-01-26 02:31:04 +00:00
parent b0514b166f
commit 20eca5c59a
+8
View File
@@ -105,6 +105,14 @@ Actor* LoadFromActorFile( CString sIniPath, CString sLayer )
pActor = MakeActor( sFile );
TEXTUREMAN->EnableOddDimensionWarning();
}
else if( IsAFile(sDir+sFile) || IsADirectory(sDir+sFile) )
{
// If we know this is an exact match, don't bother with the
// GetDirListing below. The GetDirListing is causing problems with
// partial matching BGAnimation directory names.
CString sNewPath = DerefRedir( sDir+sFile );
pActor = MakeActor( sNewPath );
}
else
{
CStringArray asPaths;