From bcc14c4b730db28c6f399eae956d951f76559888 Mon Sep 17 00:00:00 2001 From: Jim Geersinga Date: Fri, 22 Mar 2024 22:21:36 +0100 Subject: [PATCH] dont display draw as a loss --- NED.WoT.BattleResults.Client/Models/BattleReport.cs | 9 +++++++-- .../Platforms/Windows/Package.appxmanifest | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/NED.WoT.BattleResults.Client/Models/BattleReport.cs b/NED.WoT.BattleResults.Client/Models/BattleReport.cs index 2cfcc84..cfcdd6e 100644 --- a/NED.WoT.BattleResults.Client/Models/BattleReport.cs +++ b/NED.WoT.BattleResults.Client/Models/BattleReport.cs @@ -32,7 +32,7 @@ public MarkupString MatchDurationDisplay get { var duration = string.Empty; - if(MatchDuration.HasValue) + if (MatchDuration.HasValue) { var time = new TimeSpan(MatchDuration.Value * TimeSpan.TicksPerSecond); var minutes = time.Minutes.ToString(); @@ -108,6 +108,11 @@ public bool IsWin(Settings settings) public bool IsLose(Settings settings) { + if (IsDraw()) + { + return false; + } + if (Team1.IsOwnTeam(settings)) { return Team1.IsWinner == false; @@ -129,7 +134,7 @@ public class Team public bool? IsWinner { get; set; } public Result Result { get; set; } - public string ResultDisplay + public string ResultDisplay { get { diff --git a/NED.WoT.BattleResults.Client/Platforms/Windows/Package.appxmanifest b/NED.WoT.BattleResults.Client/Platforms/Windows/Package.appxmanifest index 9f2625e..84052de 100644 --- a/NED.WoT.BattleResults.Client/Platforms/Windows/Package.appxmanifest +++ b/NED.WoT.BattleResults.Client/Platforms/Windows/Package.appxmanifest @@ -6,7 +6,7 @@ xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" IgnorableNamespaces="uap rescap"> - +