Skip to content

Commit

Permalink
always put the logged in player at the end of ladders if ranked
Browse files Browse the repository at this point in the history
  • Loading branch information
DeinFreund committed Nov 22, 2018
1 parent 72bd8ef commit f5bdef9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Zero-K.info/Views/Ladders/ladders.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,14 @@
{
@:</span><br /><span style="font-size: small">
}
var acc = acct;
if (rank == GlobalConst.LadderSize && Global.IsAccountAuthorized && Global.Account.GetRating(RatingCategory.MatchMaking)?.Rank > rank)
{
rank = Global.Account.GetRating(RatingCategory.MatchMaking).Rank;
acc = Global.Account;
}
<text>
@(rank) ) @Html.PrintAccount(acct) - @(Math.Round(acct.GetRating(RatingCategory.MatchMaking).Elo)) <br />
@(rank) ) @Html.PrintAccount(acc) - @(Math.Round(acc.GetRating(RatingCategory.MatchMaking).Elo)) <br />
</text>
}
}
Expand All @@ -41,6 +47,12 @@
{
@:</span><br /><span style="font-size: small">
}
var acc = acct;
if (rank == GlobalConst.LadderSize && Global.IsAccountAuthorized && Global.Account.GetRating(RatingCategory.Casual)?.Rank > rank)
{
rank = Global.Account.GetRating(RatingCategory.Casual).Rank;
acc = Global.Account;
}
<text>
@(rank)) @Html.PrintAccount(acct) - @(Math.Round(acct.GetRating(RatingCategory.Casual).Elo))<br />
</text>
Expand Down

0 comments on commit f5bdef9

Please sign in to comment.