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:
@@ -230,12 +230,7 @@ void Actor::LoadFromNode( const CString& sDir, const XNode* pNode )
|
|||||||
THEME->EvaluateString( sValue );
|
THEME->EvaluateString( sValue );
|
||||||
apActorCommands apac( new ActorCommands( sValue ) );
|
apActorCommands apac( new ActorCommands( sValue ) );
|
||||||
|
|
||||||
CString sCmdName;
|
CString sCmdName = sKeyName.Left( sKeyName.size()-7 );
|
||||||
/* Special case: "Command=foo" -> "OnCommand=foo" */
|
|
||||||
if( sKeyName.size() == 7 )
|
|
||||||
sCmdName="On";
|
|
||||||
else
|
|
||||||
sCmdName = sKeyName.Left( sKeyName.size()-7 );
|
|
||||||
AddCommand( sCmdName, apac );
|
AddCommand( sCmdName, apac );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user