From 8eb0d03a60dae69ed295202e6e217b572119f23d Mon Sep 17 00:00:00 2001 From: Matt Denham Date: Sat, 21 Feb 2004 04:45:48 +0000 Subject: [PATCH] Stopped the editor from crashing when attempting to save steps on Edit difficulty. --- stepmania/src/NotesWriterDWI.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/NotesWriterDWI.cpp b/stepmania/src/NotesWriterDWI.cpp index 0d8c97a187..40bd9dc46d 100644 --- a/stepmania/src/NotesWriterDWI.cpp +++ b/stepmania/src/NotesWriterDWI.cpp @@ -328,6 +328,12 @@ bool NotesWriterDWI::WriteDWINotesTag( RageFile &f, const Steps &out ) case DIFFICULTY_MEDIUM: f.Write( "ANOTHER:" ); break; case DIFFICULTY_HARD: f.Write( "MANIAC:" ); break; case DIFFICULTY_CHALLENGE: f.Write( "SMANIAC:" ); break; + // we crash if we try to write Edit steps, + // and DWI doesn't really support edit steps, + // either - so we'll just leave them out, okay? + // Besides, we're not checking for these (or Beginner, + // for that matter) in the loader. + case DIFFICULTY_EDIT: return false; default: ASSERT(0); return false; }