Skip to content

Commit 1ea4c49

Browse files
committed
Add indication of duplicate difficulty to Steps
1 parent b01f56b commit 1ea4c49

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Etterna/Models/Songs/SongUtil.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ SongUtil::AdjustDuplicateSteps(Song* pSong)
224224
StepsUtil::SortNotesArrayByDifficulty(vSteps);
225225
for (unsigned k = 1; k < vSteps.size(); k++) {
226226
vSteps[k]->SetDifficulty(Difficulty_Edit);
227+
vSteps[k]->SetDupeDiff(true);
227228
if (vSteps[k]->GetDescription() == "") {
228229
/* "Hard Edit" */
229230
RString EditName =

src/Etterna/Models/StepsAndStyles/Steps.h

+4
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ class Steps
132132
const RString& sDescription);
133133
void SetCredit(const RString& sCredit);
134134
void SetChartStyle(const RString& sChartStyle);
135+
void SetDupeDiff(bool state) { m_bDuplicateDifficulty = state; }
136+
bool IsDupeDiff() { return m_bDuplicateDifficulty; }
135137
static bool MakeValidEditDescription(
136138
RString& sPreferredDescription); // return true if was modified
137139

@@ -319,6 +321,8 @@ class Steps
319321
* @brief What is the maximum specified BPM?
320322
* If this is a range, then min should not be equal to max. */
321323
float specifiedBPMMax;
324+
325+
bool m_bDuplicateDifficulty = false;
322326
};
323327

324328
#endif

0 commit comments

Comments
 (0)