From 4ca68d92faec93a4b4b61ff58c38dc49e7ef1f63 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 31 May 2007 05:28:21 +0000 Subject: [PATCH] Precache attrib --- stepmania/src/ActorSound.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ActorSound.cpp b/stepmania/src/ActorSound.cpp index a84efde4f3..4e2eee2e1f 100644 --- a/stepmania/src/ActorSound.cpp +++ b/stepmania/src/ActorSound.cpp @@ -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, ¶ms ); + m_Sound.Load( sFile, bPrecache, ¶ms ); } // lua start