From 142157e147dcb44500530e25aa7295026054e8ef Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Fri, 9 Feb 2007 03:24:11 +0000 Subject: [PATCH] StepsTypeToString should return "Foo_Bar", not "StepsType_Foo_Bar" --- stepmania/src/GameConstantsAndTypes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/GameConstantsAndTypes.cpp b/stepmania/src/GameConstantsAndTypes.cpp index 2f3df23002..69e08ad074 100644 --- a/stepmania/src/GameConstantsAndTypes.cpp +++ b/stepmania/src/GameConstantsAndTypes.cpp @@ -36,14 +36,14 @@ LuaXType( RadarCategory ); RString StepsTypeToString( StepsType st ) { RString s = GAMEMAN->StepsTypeToString( st ); - /* foo-bar -> StepsType_Foo_Bar */ + /* foo-bar -> Foo_Bar */ s.Replace('-','_'); for( size_t i = 0; i < s.size(); ++i ) { if( i == 0 || s[i-1] == '_' ) s[i] = toupper( s[i] ); } - return "StepsType_"+s; + return s; } LuaXType( StepsType );