Only update bestScore if it's actually better
This commit is contained in:
parent
0f7b985c5e
commit
e268b63bd7
1 changed files with 5 additions and 2 deletions
|
@ -13,6 +13,8 @@ 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();
|
||||
|
@ -20,3 +22,4 @@ namespace DiamondTimeViewer.Patches
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue