Skip to content

Commit

Permalink
remind me to not release updates as buggy
Browse files Browse the repository at this point in the history
fixed note skins not appearing as the note skin you're using (fixes #290)
fixed sustain notes appearing above strums (fixes #292)
fixed note hits not counting anything if you used just the right settings (fixes #291)
  • Loading branch information
JordanSantiagoYT committed Apr 20, 2024
1 parent 5961f7f commit faa3af0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ using StringTools;

class MainMenuState extends MusicBeatState
{
public static var psychEngineJSVersion:String = '1.24.1'; //This is also used for Discord RPC
public static var psychEngineJSVersion:String = '1.24.2'; //This is also used for Discord RPC
public static var psychEngineVersion:String = '0.6.3'; //This is also used for Discord RPC
public static var curSelected:Int = 0;

Expand Down
2 changes: 2 additions & 0 deletions source/Note.hx
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ class Note extends FlxSprite
isSustainNote = chartNoteData.isSustainNote;
if (chartNoteData.noteskin.length > 0 && chartNoteData.noteskin != '' && chartNoteData.noteskin != texture) texture = 'noteskins/' + chartNoteData.noteskin;
if (chartNoteData.texture.length > 0 && chartNoteData.texture != texture) texture = chartNoteData.texture;
if (chartNoteData.noteskin.length < 1 && chartNoteData.texture != Paths.defaultSkin) texture = Paths.defaultSkin;
sustainLength = chartNoteData.sustainLength;
sustainScale = chartNoteData.sustainScale;
lowPriority = chartNoteData.lowPriority;
Expand Down Expand Up @@ -489,6 +490,7 @@ class Note extends FlxSprite
if (alpha != 1) alpha = 1;
}
if (flipY) flipY = false;
if (PlayState != null) cameras = [isSustainNote ? PlayState.instance.camHUDBelow : PlayState.instance.camHUD];
clipRect = null;
alpha = 1;
return this;
Expand Down
4 changes: 2 additions & 2 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -6259,7 +6259,7 @@ if (ClientPrefs.showNPS && (notesHitDateArray.length > 0 || oppNotesHitDateArray

if (combo < 0) combo = 0;
if (polyphony > 1 && !note.isSustainNote) totalNotes += polyphony - 1;
if (!note.isSustainNote && !cpuControlled && !ClientPrefs.lessBotLag || !note.isSustainNote && cpuControlled && ClientPrefs.communityGameBot)
if (!note.isSustainNote && !cpuControlled || !note.isSustainNote && cpuControlled && ClientPrefs.communityGameBot)
{
combo += 1 * polyphony;
totalNotesPlayed += 1 * polyphony;
Expand All @@ -6268,7 +6268,7 @@ if (ClientPrefs.showNPS && (notesHitDateArray.length > 0 || oppNotesHitDateArray
inline notesHitArray.push(1 * polyphony);
inline notesHitDateArray.push(Conductor.songPosition);
}
if (!ClientPrefs.lessBotLag) popUpScore(note);
if (!ClientPrefs.lessBotLag || ClientPrefs.communityGameBot) popUpScore(note);
else
{
final noteDiff:Float = Math.abs(note.strumTime - Conductor.songPosition + ClientPrefs.ratingOffset) / playbackRate;
Expand Down

0 comments on commit faa3af0

Please sign in to comment.