Remove old hack. (This was added as a convenience back before actor

commands were used as widely as they are now.)
This commit is contained in:
Glenn Maynard
2005-09-03 07:19:00 +00:00
parent 267e913b4d
commit 90f55ac9c2
+1 -6
View File
@@ -230,12 +230,7 @@ void Actor::LoadFromNode( const CString& sDir, const XNode* pNode )
THEME->EvaluateString( sValue );
apActorCommands apac( new ActorCommands( sValue ) );
CString sCmdName;
/* Special case: "Command=foo" -> "OnCommand=foo" */
if( sKeyName.size() == 7 )
sCmdName="On";
else
sCmdName = sKeyName.Left( sKeyName.size()-7 );
CString sCmdName = sKeyName.Left( sKeyName.size()-7 );
AddCommand( sCmdName, apac );
}
}