fix PlayCommand doesn't propogate

This commit is contained in:
Chris Danford
2004-02-01 04:41:48 +00:00
parent dc0201d576
commit dd78eb858f
4 changed files with 23 additions and 36 deletions
+7 -5
View File
@@ -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() );