fix UtilCommand
This commit is contained in:
@@ -142,8 +142,9 @@ void UtilSetXY( Actor& actor, CString sClassName )
|
||||
float UtilCommand( Actor& actor, CString sClassName, CString sCommandName )
|
||||
{
|
||||
// If Actor is hidden, it won't get updated or drawn, so don't bother tweening.
|
||||
if( actor.GetHidden() )
|
||||
return 0;
|
||||
/* ... but we might be unhiding it, or setting state for when we unhide it later */
|
||||
// if( actor.GetHidden() )
|
||||
// return 0;
|
||||
|
||||
float ret = actor.Command( "playcommand," + sCommandName );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user