From a7d4031cb40c86d80734a60364b0e6bf9e2258d1 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 5 Feb 2003 19:48:02 +0000 Subject: [PATCH] handle difficulty aliases in StringToDifficulty --- stepmania/src/GameConstantsAndTypes.cpp | 24 ++++++++++++++++++------ stepmania/src/Notes.cpp | 19 +------------------ 2 files changed, 19 insertions(+), 24 deletions(-) diff --git a/stepmania/src/GameConstantsAndTypes.cpp b/stepmania/src/GameConstantsAndTypes.cpp index 6e033a71cb..85ca34a922 100644 --- a/stepmania/src/GameConstantsAndTypes.cpp +++ b/stepmania/src/GameConstantsAndTypes.cpp @@ -30,14 +30,26 @@ CString DifficultyToString( Difficulty dc ) } } +/* We prefer the above names; recognize a number of others, too. (They'l + * get normalized when written to SMs, etc.) */ Difficulty StringToDifficulty( CString sDC ) { - for( int i=0; i