From 626e58012292cd0d35082b24baeefc5f2abca834 Mon Sep 17 00:00:00 2001 From: Emik Date: Wed, 12 Jun 2024 11:50:53 +0200 Subject: [PATCH] Fix Qua equality Fixes extremely niche edgecase with map backups that causes maps to not be backed up if the only difference between the new and old is a difference in the Legacy LN toggle. Any other difference still saves properly. --- Quaver.API/Maps/Qua.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Quaver.API/Maps/Qua.cs b/Quaver.API/Maps/Qua.cs index c6e1ebbea..a030e2d7c 100644 --- a/Quaver.API/Maps/Qua.cs +++ b/Quaver.API/Maps/Qua.cs @@ -225,6 +225,7 @@ public bool EqualByValue(Qua other) // ReSharper disable once CompareOfFloatsByEqualityOperator && InitialScrollVelocity == other.InitialScrollVelocity && BPMDoesNotAffectScrollVelocity == other.BPMDoesNotAffectScrollVelocity + && LegacyLNRendering == other.LegacyLNRendering && HasScratchKey == other.HasScratchKey && HitObjects.SequenceEqual(other.HitObjects, HitObjectInfo.ByValueComparer) && CustomAudioSamples.SequenceEqual(other.CustomAudioSamples, CustomAudioSampleInfo.ByValueComparer)