From a0399309a911520e6e466ef224335283b1e5374d Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Mon, 12 Jul 2021 00:50:23 +0300 Subject: [PATCH] invert rank priority --- TODO.md | 4 ++-- YAS/Classes/YASRepInfo.uc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index d621e51..7139102 100644 --- a/TODO.md +++ b/TODO.md @@ -8,5 +8,5 @@ + dynamic colors for assists - abbreviated dosh display (10K, 15K, etc.) - images for HP (cross, skull with bones if dead) -- show armor -- use rank id as priority \ No newline at end of file ++ show armor ++ use rank id as priority \ No newline at end of file diff --git a/YAS/Classes/YASRepInfo.uc b/YAS/Classes/YASRepInfo.uc index ac2a85d..e521651 100644 --- a/YAS/Classes/YASRepInfo.uc +++ b/YAS/Classes/YASRepInfo.uc @@ -177,7 +177,7 @@ private reliable client function FindMyRankInSteamGroups() `callstack(); foreach SteamGroupRelations(SteamGroupRel) - if (SW.CheckPlayerGroup(SteamGroupRel.UID) && SteamGroupRel.RankID > RankRelation.RankID) + if (SW.CheckPlayerGroup(SteamGroupRel.UID) && (RankRelation.RankID < 0 || SteamGroupRel.RankID < RankRelation.RankID)) RankRelation.RankID = SteamGroupRel.RankID; if (RankRelation.RankID != INDEX_NONE)