From d93b35ed69708a83874800221b2f72c71af33ef8 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 9 Jul 2005 08:09:00 +0000 Subject: [PATCH] simplify --- stepmania/src/OptionIconRow.cpp | 16 +++++++--------- stepmania/src/OptionIconRow.h | 5 ++--- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/stepmania/src/OptionIconRow.cpp b/stepmania/src/OptionIconRow.cpp index 2ff963df87..75727ce986 100644 --- a/stepmania/src/OptionIconRow.cpp +++ b/stepmania/src/OptionIconRow.cpp @@ -5,7 +5,9 @@ #include "GameState.h" #include "RageLog.h" #include "PlayerState.h" +#include "ActorUtil.h" +REGISTER_ACTOR_CLASS( OptionIconRow ) #define SPACING_X THEME->GetMetricF("OptionIconRow","SpacingX") #define SPACING_Y THEME->GetMetricF("OptionIconRow","SpacingY") @@ -13,7 +15,6 @@ OptionIconRow::OptionIconRow() { - m_PlayerNumber = NUM_PLAYERS; for( unsigned i=0; im_pPlayerState[m_PlayerNumber]->m_PlayerOptions.GetString(); + CString sOptions = GAMESTATE->m_pPlayerState[pn]->m_PlayerOptions.GetString(); CStringArray asOptions; split( sOptions, ", ", asOptions, true ); @@ -127,9 +125,9 @@ void OptionIconRow::Refresh() for( unsigned i=0; i