Skip to content

Commit

Permalink
dont display draw as a loss
Browse files Browse the repository at this point in the history
  • Loading branch information
JimGeersinga committed Mar 22, 2024
1 parent 68310cb commit bcc14c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions NED.WoT.BattleResults.Client/Models/BattleReport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;
Expand All @@ -129,7 +134,7 @@ public class Team
public bool? IsWinner { get; set; }
public Result Result { get; set; }

public string ResultDisplay
public string ResultDisplay
{
get
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="uap rescap">

<Identity Name="maui-package-name-placeholder" Publisher="CN=JimG" Version="1.8.8.0" />
<Identity Name="maui-package-name-placeholder" Publisher="CN=JimG" Version="1.8.9.0" />

<mp:PhoneIdentity PhoneProductId="3DAE7680-3F65-440F-908F-252D648F20FC" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

Expand Down

0 comments on commit bcc14c4

Please sign in to comment.