Only update bestScore if it's actually better

This commit is contained in:
Terry Hearst 2023-08-26 22:26:13 -04:00
parent 0f7b985c5e
commit e268b63bd7

View file

@ -13,10 +13,13 @@ namespace DiamondTimeViewer.Patches
return;
if ((__instance.PlayType == PlayType.Normal || __instance.PlayType == PlayType.Ghost) && !MarbleManager.usedRewind && LevelSelect.instance != null)
{
if (marble.ElapsedTime < LevelSelect.instance.bestScore)
{
LevelSelect.instance.bestScore = marble.ElapsedTime;
LevelSelect.instance.UpdateMedals();
}
}
}
}
}