Precache attrib

This commit is contained in:
Glenn Maynard
2007-05-31 05:28:21 +00:00
parent 62ea4a561a
commit 4ca68d92fa
+4 -1
View File
@@ -23,11 +23,14 @@ void ActorSound::LoadFromNode( const XNode* pNode )
pNode->GetAttrValue("SupportPan", params.m_bSupportPan);
pNode->GetAttrValue("SupportRateChanging", params.m_bSupportRateChanging);
bool bPrecache = true;
pNode->GetAttrValue( "Precache", bPrecache );
Actor::LoadFromNode( pNode );
RString sFile;
if( ActorUtil::GetAttrPath(pNode, "File", sFile) )
m_Sound.Load( sFile, true, &params );
m_Sound.Load( sFile, bPrecache, &params );
}
// lua start