Prefer a->PlayCommand(b) to COMMAND(a,b). COMMAND tries
to load commands from metrics if they don't exist. That's a leftover from older code, before we could load all commands at load time. Now it's a bit confusing, causes us to spend time loading things after we're already rendering, and causes error dialogs that should happen during load to happen later.
This commit is contained in:
@@ -363,7 +363,7 @@ void WheelBase::TweenOnScreenForSort()
|
||||
|
||||
m_WheelState = STATE_FLYING_ON_AFTER_NEXT_SORT;
|
||||
|
||||
COMMAND( this, "SortOn" );
|
||||
this->PlayCommand( "SortOn" );
|
||||
|
||||
m_fTimeLeftInState = GetTweenTimeLeft();
|
||||
}
|
||||
@@ -372,7 +372,7 @@ void WheelBase::TweenOffScreenForSort()
|
||||
{
|
||||
m_WheelState = STATE_FLYING_OFF_BEFORE_NEXT_SORT;
|
||||
|
||||
COMMAND( this, "SortOff" );
|
||||
this->PlayCommand( "SortOff" );
|
||||
|
||||
m_fTimeLeftInState = GetTweenTimeLeft();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user