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
|
@ -14,8 +14,11 @@ namespace DiamondTimeViewer.Patches
|
||||||
|
|
||||||
if ((__instance.PlayType == PlayType.Normal || __instance.PlayType == PlayType.Ghost) && !MarbleManager.usedRewind && LevelSelect.instance != null)
|
if ((__instance.PlayType == PlayType.Normal || __instance.PlayType == PlayType.Ghost) && !MarbleManager.usedRewind && LevelSelect.instance != null)
|
||||||
{
|
{
|
||||||
LevelSelect.instance.bestScore = marble.ElapsedTime;
|
if (marble.ElapsedTime < LevelSelect.instance.bestScore)
|
||||||
LevelSelect.instance.UpdateMedals();
|
{
|
||||||
|
LevelSelect.instance.bestScore = marble.ElapsedTime;
|
||||||
|
LevelSelect.instance.UpdateMedals();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue