Skip to content

Commit

Permalink
fixed tracking of subgroups
Browse files Browse the repository at this point in the history
  • Loading branch information
knoxfighter committed Dec 8, 2022
1 parent 0cd2708 commit 3e0489b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions killproof_me/KillproofUITable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ void KillproofUITable::Sort(const ImGuiTableColumnSortSpecs* mColumnSortSpecs) {
uint8_t playerBGroup = cachedPlayers.at(playerBName).subgroup;

if (descend) {
return playerAGroup < playerBGroup;
return playerAGroup > playerBGroup;
}
return playerAGroup > playerBGroup;
return playerAGroup < playerBGroup;
});
return;
}
Expand Down
5 changes: 1 addition & 4 deletions killproof_me/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,10 +520,7 @@ void squad_update_callback(const UserInfo* updatedUsers, size_t updatedUsersCoun

// add to tracking
// addPlayerTracking(username);
if (!addPlayerAll(username)) {
// player already tracked, do nothing
continue;
}
addPlayerAll(username);

auto playerIt = cachedPlayers.find(username);
if (playerIt == cachedPlayers.end()) {
Expand Down

0 comments on commit 3e0489b

Please sign in to comment.