invert rank priority
This commit is contained in:
parent
aa22ff296b
commit
a0399309a9
4
TODO.md
4
TODO.md
@ -8,5 +8,5 @@
|
|||||||
+ dynamic colors for assists
|
+ dynamic colors for assists
|
||||||
- abbreviated dosh display (10K, 15K, etc.)
|
- abbreviated dosh display (10K, 15K, etc.)
|
||||||
- images for HP (cross, skull with bones if dead)
|
- images for HP (cross, skull with bones if dead)
|
||||||
- show armor
|
+ show armor
|
||||||
- use rank id as priority
|
+ use rank id as priority
|
@ -177,7 +177,7 @@ private reliable client function FindMyRankInSteamGroups()
|
|||||||
`callstack();
|
`callstack();
|
||||||
|
|
||||||
foreach SteamGroupRelations(SteamGroupRel)
|
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;
|
RankRelation.RankID = SteamGroupRel.RankID;
|
||||||
|
|
||||||
if (RankRelation.RankID != INDEX_NONE)
|
if (RankRelation.RankID != INDEX_NONE)
|
||||||
|
Loading…
Reference in New Issue
Block a user