From 5b2e497b7600fd211f97f31d00a944b6fc04be8f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 18 Oct 2002 01:35:45 +0000 Subject: [PATCH] Handle speed modifiers specially, so we don't bail if we get a weird speed. If we *do* bail, log why. --- stepmania/src/OptionIconRow.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/stepmania/src/OptionIconRow.cpp b/stepmania/src/OptionIconRow.cpp index 78620e56d4..7b2a5d4e7f 100644 --- a/stepmania/src/OptionIconRow.cpp +++ b/stepmania/src/OptionIconRow.cpp @@ -14,6 +14,7 @@ #include "ThemeManager.h" #include "PlayerOptions.h" #include "GameState.h" +#include "RageLog.h" #define SPACING_X THEME->GetMetricF("OptionIconRow","SpacingX") @@ -38,15 +39,6 @@ struct OptionColumnEntry const OptionColumnEntry g_OptionColumnEntries[] = { - {"0.5X", 0}, - {"0.75X", 0}, - {"1X", 0}, - {"1.5X", 0}, - {"2X", 0}, - {"3X", 0}, - {"4X", 0}, - {"5X", 0}, - {"8X", 0}, {"Boost", 0}, {"Wave", 1}, {"Drunk", 1}, @@ -76,10 +68,18 @@ const int NUM_OPTION_COL_ENTRIES = sizeof(g_OptionColumnEntries)/sizeof(OptionCo int OptionToPreferredColumn( CString sOptionText ) { + /* Speedups always go in column 0. digit ... x */ + if(sOptionText.GetLength() > 1 && + isdigit(sOptionText[0]) && + tolower(sOptionText[sOptionText.GetLength()-1]) == 'x') { + return 0; + } + for( int i=0; iTrace("Unknown option: \"%s\"", sOptionText ); ASSERT(0); // we encountered an option that isn't in our lookup table. You should add it above. return -1; }