From 04e1584a5b5c35bd017a4dd08240ecf552983eb0 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 2 Apr 2007 08:18:08 +0000 Subject: [PATCH] Only load commands once. --- stepmania/src/ScreenSelectStyle.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stepmania/src/ScreenSelectStyle.cpp b/stepmania/src/ScreenSelectStyle.cpp index 35442510cc..c52b03840a 100644 --- a/stepmania/src/ScreenSelectStyle.cpp +++ b/stepmania/src/ScreenSelectStyle.cpp @@ -64,6 +64,7 @@ void ScreenSelectStyle::Init() m_sprPicture[i].Load( sPicturePath ); m_sprPicture[i].SetDiffuse( RageColor(1,1,1,0) ); this->AddChild( &m_sprPicture[i] ); + LOAD_ALL_COMMANDS( m_sprPicture[i] ); } @@ -77,6 +78,7 @@ void ScreenSelectStyle::Init() m_sprInfo[i].Load( sInfoPath ); m_sprInfo[i].SetDiffuse( RageColor(1,1,1,0) ); this->AddChild( &m_sprInfo[i] ); + LOAD_ALL_COMMANDS( m_sprInfo[i] ); } } @@ -293,8 +295,8 @@ void ScreenSelectStyle::AfterChange() m_sprInfo[m_iSelection].SetDiffuse( RageColor(1,1,1,1) ); m_sprPicture[m_iSelection].SetZoom( 1 ); m_sprInfo[m_iSelection].SetZoom( 1 ); - LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprPicture[m_iSelection] ); - LOAD_ALL_COMMANDS_AND_SET_XY_AND_ON_COMMAND( m_sprInfo[m_iSelection] ); + SET_XY_AND_ON_COMMAND( m_sprPicture[m_iSelection] ); + SET_XY_AND_ON_COMMAND( m_sprInfo[m_iSelection] ); } /*