From 0dc5ff5df5b71ba1143e46b6c30aa3433a5a54d6 Mon Sep 17 00:00:00 2001 From: Lucky56 <55949451+Lucky-56@users.noreply.github.com> Date: Fri, 11 Jun 2021 19:08:48 +0200 Subject: [PATCH] Replay with 'broken' charts now fully fixed --- source/LoadReplayState.hx | 2 +- source/Note.hx | 4 ++-- source/PlayState.hx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/LoadReplayState.hx b/source/LoadReplayState.hx index a140826..f67046e 100644 --- a/source/LoadReplayState.hx +++ b/source/LoadReplayState.hx @@ -102,7 +102,7 @@ class LoadReplayState extends MusicBeatState for (i in 0...songs.length) { var pog:FreeplayState.SongMetadata = songs[i]; - if (pog.songName.toLowerCase() == songName) + if (pog.songName == songName) week = pog.week; } return week; diff --git a/source/Note.hx b/source/Note.hx index 05c6707..1eb3977 100644 --- a/source/Note.hx +++ b/source/Note.hx @@ -63,8 +63,8 @@ class Note extends FlxSprite var noteTypeCheck:String = 'normal'; if (PlayState.SONG.noteStyle == null) { - switch(storyWeek) { case 6: noteTypeCheck = 'pixel'; } - } else {noteTypeCheck = SONG.noteStyle;} + switch(PlayState.storyWeek) {case 6: noteTypeCheck = 'pixel';} + } else {noteTypeCheck = PlayState.SONG.noteStyle;} switch (noteTypeCheck) { diff --git a/source/PlayState.hx b/source/PlayState.hx index fae61e2..fdcd588 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -1517,7 +1517,7 @@ class PlayState extends MusicBeatState var noteTypeCheck:String = 'normal'; if (SONG.noteStyle == null) { - switch(storyWeek) { case 6: noteTypeCheck = 'pixel'; } + switch(storyWeek) {case 6: noteTypeCheck = 'pixel';} } else {noteTypeCheck = SONG.noteStyle;} switch (noteTypeCheck)