revert some bad changes

This commit is contained in:
Chris Danford
2004-02-01 05:03:45 +00:00
parent dd78eb858f
commit fe3304d577
4 changed files with 36 additions and 16 deletions
+9 -6
View File
@@ -816,12 +816,15 @@ void Actor::HandleCommand( const ParsedCommand &command )
else if( sName=="clearzbuffer" ) SetClearZBuffer( bParam(1) );
else if( sName=="hidden" ) SetHidden( bParam(1) );
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 */
/* These are commands intended for a Sprite commands, but they will get
* sent to all sub-actors (which aren't necessarily Sprites) on
* GainingFocus and LosingFocus. So, don't run CheckHandledParams
* on these commands. */
else if( sName=="customtexturerect" || sName=="texcoordvelocity" || sName=="scaletoclipped" ||
sName=="stretchtexcoords" || sName=="position" || sName=="loop" || sName=="play" ||
sName=="pause" || sName=="rate" )
return;
else
{
CString sError = ssprintf( "Actor::HandleCommand: Unrecognized command name '%s'.", sName.c_str() );