From 7aff5879280989a3f607c44093d94b00f241bb6f Mon Sep 17 00:00:00 2001 From: duel0213 Date: Sun, 26 Jan 2025 16:04:40 +0900 Subject: [PATCH] IIDX: Moved invalid miss count migration code position --- iidx@asphyxia/handlers/music.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/iidx@asphyxia/handlers/music.ts b/iidx@asphyxia/handlers/music.ts index b4a460d..fa81070 100644 --- a/iidx@asphyxia/handlers/music.ts +++ b/iidx@asphyxia/handlers/music.ts @@ -527,6 +527,12 @@ export const musicreg: EPR = async (info, data, send) => { rArray = music_data.rArray; } + // migration for invalid miss count // + // if EXSCORE/MISS COUNT is 0 and CLEAR FLAG is NO PLAY then set MISS COUNT to -1 // + for (let a = 0; a < mArray.length; a++) { + if (esArray[a] == 0 && cArray[a] == 0 && mArray[a] == 0) mArray[a] = -1; + } + const pExscore = esArray[clid]; if (exscore > pExscore) { pgArray[clid] = pgnum; @@ -546,12 +552,6 @@ export const musicreg: EPR = async (info, data, send) => { cArray[clid] = Math.max(cArray[clid], cflg); } - // migration for invalid miss count // - // if EXSCORE/MISS COUNT is 0 and CLEAR FLAG is NO PLAY then set MISS COUNT to -1 // - for (let a = 0; a < mArray.length; a++) { - if (esArray[a] == 0 && cArray[a] == 0 && mArray[a] == 0) mArray[a] = -1; - } - if (version >= 27) { // TODO:: support old version // const score_top: score_top | null = await DB.FindOne(null, { collection: "score_top",