From 92585fcaa90edd5b7e98959e158f20dbe022dd40 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 11 Oct 2005 00:47:15 +0000 Subject: [PATCH] rearrange --- stepmania/src/ActorUtil.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index 4f27845698..4734a8c9f4 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -240,17 +240,6 @@ Actor* ActorUtil::MakeActor( const CString &sPath ) FileType ft = GetFileType( sPath ); switch( ft ) { - case FT_Xml: - { - XNode xml; - if( !xml.LoadFromFile(sPath) ) - { - // XNode will warn about the error - return new Actor; - } - CString sDir = Dirname( sPath ); - return LoadFromActorFile( sDir, &xml ); - } case FT_Directory: { CString sDir = sPath; @@ -275,6 +264,17 @@ Actor* ActorUtil::MakeActor( const CString &sPath ) return pBGA; } } + case FT_Xml: + { + XNode xml; + if( !xml.LoadFromFile(sPath) ) + { + // XNode will warn about the error + return new Actor; + } + CString sDir = Dirname( sPath ); + return LoadFromActorFile( sDir, &xml ); + } case FT_Bitmap: case FT_Movie: {