From b07ad44c71aba933899fb3b674f24ff931170d0d Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 23 Mar 2005 10:56:51 +0000 Subject: [PATCH] lower notes cap improve cap error message --- stepmania/src/NoteTypes.h | 2 +- stepmania/src/ScreenEdit.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/stepmania/src/NoteTypes.h b/stepmania/src/NoteTypes.h index 766b39ab33..c1ed61059b 100644 --- a/stepmania/src/NoteTypes.h +++ b/stepmania/src/NoteTypes.h @@ -146,7 +146,7 @@ const int MAX_NOTE_TRACKS = 16; const int ROWS_PER_BEAT = 48; /* In the editor, enforce a reasonable limit on the number of notes. */ -const int MAX_NOTES_PER_MEASURE = 50; +const int MAX_NOTES_PER_MEASURE = 25; const int BEATS_PER_MEASURE = 4; const int ROWS_PER_MEASURE = ROWS_PER_BEAT * BEATS_PER_MEASURE; diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index fb6314ad3f..f6d0c40525 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -2544,7 +2544,10 @@ void ScreenEdit::CheckNumberOfNotesAndUndo() if( iNumNotesThisMeasure > MAX_NOTES_PER_MEASURE ) { Undo(); - SCREENMAN->Prompt( SM_None, "This change creates more than 50 notes in a measure. The change has been reverted." ); + CString sError = ssprintf( + "This change creates more than %d notes in a measure.\n\nMore than %d notes per measure is not allowed. This change has been reverted.", + MAX_NOTES_PER_MEASURE, MAX_NOTES_PER_MEASURE ); + SCREENMAN->Prompt( SM_None, sError ); return; } }