Can't find any reason why I didn't do it this way to begin with; seems to work
fine ...
This commit is contained in:
@@ -320,14 +320,7 @@ void UtilSetXY( Actor& actor, const CString &sScreenName )
|
|||||||
|
|
||||||
void UtilCommand( Actor& actor, const CString &sScreenName, const CString &sCommandName )
|
void UtilCommand( Actor& actor, const CString &sScreenName, const CString &sCommandName )
|
||||||
{
|
{
|
||||||
// If Actor is hidden, it won't get updated or drawn, so don't bother tweening.
|
actor.PlayCommand( sCommandName );
|
||||||
/* ... but we might be unhiding it, or setting state for when we unhide it later */
|
|
||||||
// if( actor.GetHidden() )
|
|
||||||
// return 0;
|
|
||||||
|
|
||||||
Command ac;
|
|
||||||
ac.Load("playcommand,"+sCommandName);
|
|
||||||
actor.HandleCommand( ac );
|
|
||||||
|
|
||||||
// HACK: It's very often that we command things to TweenOffScreen
|
// HACK: It's very often that we command things to TweenOffScreen
|
||||||
// that we aren't drawing. We know that an Actor is not being
|
// that we aren't drawing. We know that an Actor is not being
|
||||||
|
|||||||
Reference in New Issue
Block a user