add color parameter to BGChanges

This commit is contained in:
Chris Danford
2005-06-05 22:21:55 +00:00
parent 162d235691
commit b489c43a88
8 changed files with 138 additions and 40 deletions
+10 -1
View File
@@ -131,7 +131,16 @@ Actor* ActorUtil::LoadFromActorFile( const CString& sAniDir, const XNode* pNode
bHasClass = pNode->GetAttrValue( "Type", sClass ); // for backward compatibility
CString sFile;
pNode->GetAttrValue( "File", sFile );
if( pNode->GetAttrValue( "File", sFile ) )
{
if( sFile == "" )
{
CString sError = ssprintf( "The actor file in '%s' is as a blank, invalid File attribute \"%s\"",
sAniDir.c_str(), sClass.c_str() );
RageException::Throw( sError );
}
}
LUA->RunAtExpressionS( sFile );
bool bIsAbsolutePath = sFile.Left(1) == "/";