From 30b6f2cdfc90477476abaa50e25b25760f0e499d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 31 Aug 2006 19:47:56 +0000 Subject: [PATCH] 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. --- stepmania/src/WheelBase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/WheelBase.cpp b/stepmania/src/WheelBase.cpp index e8f0b85a22..e68551039a 100644 --- a/stepmania/src/WheelBase.cpp +++ b/stepmania/src/WheelBase.cpp @@ -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(); }