Skip to content

Commit

Permalink
Fix players getting PvP stars for lost matches
Browse files Browse the repository at this point in the history
  • Loading branch information
Rampastring committed Mar 3, 2020
1 parent 6cb4df0 commit cc44703
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ClientCore/Statistics/StatisticsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,9 @@ public bool HasWonMapInPvP(string mapName, string gameMode, int requiredPlayerCo
if (localPlayer.WasSpectator)
continue;

if (!localPlayer.Won)
continue;

int[] teamMemberCounts = new int[5];

ms.Players.FindAll(ps => !ps.WasSpectator).ForEach(ps => teamMemberCounts[ps.Team]++);
Expand Down
4 changes: 2 additions & 2 deletions DXMainClient/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.6.0.2")]
[assembly: AssemblyFileVersion("2.6.0.2")]
[assembly: AssemblyVersion("2.6.0.3")]
[assembly: AssemblyFileVersion("2.6.0.3")]

0 comments on commit cc44703

Please sign in to comment.