This commit is contained in:
Glenn Maynard
2005-09-03 05:58:22 +00:00
parent f0090c2096
commit 8b21f7924f
4 changed files with 4 additions and 7 deletions
+2 -3
View File
@@ -256,16 +256,15 @@ Actor* ActorUtil::MakeActor( const RageTextureID &ID )
CString sDir = ID.filename;
if( sDir.Right(1) != "/" )
sDir += '/';
CString sIni = sDir + "BGAnimation.ini";
CString sXml = sDir + "default.xml";
CString sXml = sDir + "default.xml";
if( DoesFileExist(sXml) )
{
XNode xml;
if( !xml.LoadFromFile(sXml) )
{
// XNode will warn about the error
return new Sprite;
return new Actor;
}
return LoadFromActorFile( sDir, &xml );
}