diff --git a/info.toml b/info.toml index c14f615..6014b16 100755 --- a/info.toml +++ b/info.toml @@ -2,7 +2,7 @@ name = "Run History" author = "Vanawy" category = "Overlay" -version = "0.8.2" +version = "0.8.3" [script] dependencies = ["MLHook", "MLFeedRaceData"] diff --git a/src/main.as b/src/main.as index 3035944..34184dd 100755 --- a/src/main.as +++ b/src/main.as @@ -359,12 +359,13 @@ void UpdateCurrentTarget() return; } - Target @newTarget = @bronze; + Target@ newTarget = @bronze; int smallestDelta = bronze.time; - Target @defaultTarget = @bronze; + Target@ defaultTarget = @bronze; if (settingDefaultTarget != DefaultTargetMedalOptions::closestNotBeaten) { - defaultTarget = GetDefaultTarget(); + @defaultTarget = GetDefaultTarget(); + @newTarget = @defaultTarget; } for (uint i = 0; i < targets.Length; i++) { diff --git a/src/settings.as b/src/settings.as index 539adda..798659d 100644 --- a/src/settings.as +++ b/src/settings.as @@ -6,7 +6,7 @@ bool settingIsPBOnly = false; [Setting category="General" name="Show DNF" description="Save not finished runs"] bool setting_show_dnf = true; -[Setting category="General" name="Default target medal" description="Target medal chosen on map load"] +[Setting category="General" name="Default target medal" description="Selects the baseline medal for target comparison on map load. If default target is beaten plugin will use next closest target (same as closestNotBeaten option)."] DefaultTargetMedalOptions settingDefaultTarget = DefaultTargetMedalOptions::closestNotBeaten; [Setting category="General" name="New Runs first" description="Show new runs at the top"]