invert rank priority

This commit is contained in:
GenZmeY 2021-07-12 00:50:23 +03:00
parent aa22ff296b
commit a0399309a9
2 changed files with 3 additions and 3 deletions

View File

@ -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
+ show armor
+ use rank id as priority

View File

@ -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)