why did I use "Path"? Stick with "File". (Also, "Path" can refer to a directory

or a file; "File" always means a file.)
This commit is contained in:
Glenn Maynard
2005-10-15 21:44:15 +00:00
parent 349c19cb09
commit 204da36929
+1 -1
View File
@@ -23,7 +23,7 @@ void ActorSound::LoadFromNode( const CString& sDir, const XNode* pNode )
Actor::LoadFromNode( sDir, pNode );
CString sFile;
if( pNode->GetAttrValue("Path", sFile) )
if( pNode->GetAttrValue("File", sFile) || pNode->GetAttrValue("Path", sFile) ) /* Path deprecated */
{
LuaHelpers::RunAtExpressionS( sFile );
FixSlashesInPlace( sFile );