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:
@@ -23,7 +23,7 @@ void ActorSound::LoadFromNode( const CString& sDir, const XNode* pNode )
|
|||||||
Actor::LoadFromNode( sDir, pNode );
|
Actor::LoadFromNode( sDir, pNode );
|
||||||
|
|
||||||
CString sFile;
|
CString sFile;
|
||||||
if( pNode->GetAttrValue("Path", sFile) )
|
if( pNode->GetAttrValue("File", sFile) || pNode->GetAttrValue("Path", sFile) ) /* Path deprecated */
|
||||||
{
|
{
|
||||||
LuaHelpers::RunAtExpressionS( sFile );
|
LuaHelpers::RunAtExpressionS( sFile );
|
||||||
FixSlashesInPlace( sFile );
|
FixSlashesInPlace( sFile );
|
||||||
|
|||||||
Reference in New Issue
Block a user