From 17dd460a2062443a24aea6ce47e47bfa498e2322 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 16 Feb 2003 05:12:37 +0000 Subject: [PATCH] strip BMSs --- stepmania/src/NotesLoaderBMS.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/src/NotesLoaderBMS.cpp b/stepmania/src/NotesLoaderBMS.cpp index 1118664217..0fd206296c 100644 --- a/stepmania/src/NotesLoaderBMS.cpp +++ b/stepmania/src/NotesLoaderBMS.cpp @@ -74,6 +74,7 @@ bool BMSLoader::LoadFromBMSFile( const CString &sPath, Notes &out ) CString line; while( getline(file, line) ) // foreach line { + StripCrnl(line); CString value_name; // fill these in CString value_data; @@ -281,6 +282,8 @@ bool BMSLoader::LoadFromDir( CString sDir, Song &out ) CString line; while( getline(file, line) ) // foreach line { + StripCrnl(line); + CString value_name; // fill these in CString value_data; @@ -418,6 +421,7 @@ bool BMSLoader::LoadFromDir( CString sDir, Song &out ) CString line; while( getline(file, line) ) // foreach line { + StripCrnl(line); CString value_name; // fill these in CString value_data; @@ -479,6 +483,7 @@ bool BMSLoader::LoadFromDir( CString sDir, Song &out ) CString line; while( getline(file, line) ) // foreach line { + StripCrnl(line); CString value_name; // fill these in CString value_data;