From 20eca5c59a1bba866c8f31d03c4a73fa345b7996 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Mon, 26 Jan 2004 02:31:04 +0000 Subject: [PATCH] cleanup --- stepmania/src/ActorUtil.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index 728f5a10fb..44c96330f3 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -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;