Missed commit

This commit is contained in:
Steve Checkoway
2008-09-22 11:50:16 +00:00
parent cdfa2730cf
commit 237fc1731e
+2 -2
View File
@@ -46,7 +46,7 @@ namespace ActorUtil
inline void PlayCommand( Actor& actor, const RString &sCommandName ) { actor.PlayCommand( sCommandName ); }
inline void OnCommand( Actor& actor )
{
ASSERT_M( actor.HasCommand("On"), ssprintf("%s is missing an OnCommand.", actor.GetName().c_str()) );
ASSERT_M( actor.HasCommand("On"), ssprintf("%s is missing an OnCommand.", actor.GetLineage().c_str()) );
actor.PlayCommand("On");
}
inline void OffCommand( Actor& actor )
@@ -57,7 +57,7 @@ namespace ActorUtil
// (Do "playcommand" anyway; BGAs often have no name.)
if( actor.GetName().empty() )
return;
ASSERT_M( actor.HasCommand("Off"), ssprintf("Actor %s is missing an OffCommand.", actor.GetName().c_str()) );
ASSERT_M( actor.HasCommand("Off"), ssprintf("Actor %s is missing an OffCommand.", actor.GetLineage().c_str()) );
actor.PlayCommand("Off");
}