fix PlayCommand doesn't propogate
This commit is contained in:
@@ -815,11 +815,13 @@ void Actor::HandleCommand( const ParsedCommand &command )
|
||||
else if( sName=="zwrite" ) SetZWrite( bParam(1) );
|
||||
else if( sName=="clearzbuffer" ) SetClearZBuffer( bParam(1) );
|
||||
else if( sName=="hidden" ) SetHidden( bParam(1) );
|
||||
else if( sName=="playcommand" ) sParam(1); /* nop: only BGAnimation handles this but everyone receives it */
|
||||
else if( sName=="customtexturerect" || sName=="texcoordvelocity" || sName=="scaletoclipped" ||
|
||||
sName=="stretchtexcoords" || sName=="position" || sName=="loop" || sName=="play" ||
|
||||
sName=="pause" || sName=="rate" )
|
||||
return; /* sprite commands; don't run CheckHandledParams */
|
||||
else if( sName=="playcommand" ) PlayCommand( sParam(1) );
|
||||
// Commands to Sprite should have been handled by Sprite and shouldn't be
|
||||
// passed to Actor. -Chris
|
||||
// else if( sName=="customtexturerect" || sName=="texcoordvelocity" || sName=="scaletoclipped" ||
|
||||
// sName=="stretchtexcoords" || sName=="position" || sName=="loop" || sName=="play" ||
|
||||
// sName=="pause" || sName=="rate" )
|
||||
// return; /* sprite commands; don't run CheckHandledParams */
|
||||
else
|
||||
{
|
||||
CString sError = ssprintf( "Actor::HandleCommand: Unrecognized command name '%s'.", sName.c_str() );
|
||||
|
||||
Reference in New Issue
Block a user