From d5144d38225c4361157068826112b14a60816a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20Sch=C3=BCrz?= Date: Mon, 6 Jan 2025 12:56:19 +0100 Subject: [PATCH] Change which beatmap timing point issues get assigned to --- .../checks/timing/CheckInconsistentTimingPoints.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/common/src/verifier/checks/timing/CheckInconsistentTimingPoints.ts b/packages/common/src/verifier/checks/timing/CheckInconsistentTimingPoints.ts index f05fbfff..86300158 100644 --- a/packages/common/src/verifier/checks/timing/CheckInconsistentTimingPoints.ts +++ b/packages/common/src/verifier/checks/timing/CheckInconsistentTimingPoints.ts @@ -40,20 +40,20 @@ export class CheckInconsistentTimingPoints extends GeneralCheck { const other = beatmap.controlPoints.timingPoints.find(it => Math.round(it.time) === Math.round(timingPoint.time)); if (!other) { - yield this.createIssue(this.templates.Missing, beatmap, timingPoint.time, refBeatmap); + yield this.createIssue(this.templates.Missing, beatmap, timingPoint.time, refBeatmap.metadata.difficultyName); return; } else { if (other.meter !== timingPoint.meter) - yield this.createIssue(this.templates['Inconsistent Meter'], beatmap, timingPoint.time, refBeatmap); + yield this.createIssue(this.templates['Inconsistent Meter'], beatmap, timingPoint.time, refBeatmap.metadata.difficultyName); if (other.beatLength !== timingPoint.beatLength) - yield this.createIssue(this.templates['Inconsistent BPM'], beatmap, timingPoint.time, refBeatmap); + yield this.createIssue(this.templates['Inconsistent BPM'], beatmap, timingPoint.time, refBeatmap.metadata.difficultyName); const respectiveLineExact = beatmap.controlPoints.timingPoints.find(other => almostEquals(other.time, timingPoint.time)); if (respectiveLineExact === null) - yield this.createIssue(this.templates['Missing Minor'], beatmap, timingPoint.time, refBeatmap); + yield this.createIssue(this.templates['Missing Minor'], beatmap, timingPoint.time, refBeatmap.metadata.difficultyName); } } @@ -62,7 +62,7 @@ export class CheckInconsistentTimingPoints extends GeneralCheck { const other = refBeatmap.controlPoints.timingPoints.find(it => Math.round(it.time) === Math.round(timingPoint.time)); if (!other) { - yield this.createIssue(this.templates.Missing, beatmap, timingPoint.time, refBeatmap); + yield this.createIssue(this.templates.Missing, refBeatmap, timingPoint.time, beatmap.metadata.difficultyName); return; } @@ -70,7 +70,7 @@ export class CheckInconsistentTimingPoints extends GeneralCheck { const respectiveLineExact = refBeatmap.controlPoints.timingPoints.find(other => almostEquals(other.time, timingPoint.time)); if (respectiveLineExact === null) - yield this.createIssue(this.templates['Missing Minor'], beatmap, timingPoint.time, refBeatmap); + yield this.createIssue(this.templates['Missing Minor'], refBeatmap, timingPoint.time, beatmap.metadata.difficultyName); } } }