From 3e0489bae99c2ab1172e7120a5bae55337883aef Mon Sep 17 00:00:00 2001 From: knox Date: Thu, 8 Dec 2022 16:52:30 +0100 Subject: [PATCH] fixed tracking of subgroups --- killproof_me/KillproofUITable.cpp | 4 ++-- killproof_me/dllmain.cpp | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/killproof_me/KillproofUITable.cpp b/killproof_me/KillproofUITable.cpp index b8c16b2..e660e55 100644 --- a/killproof_me/KillproofUITable.cpp +++ b/killproof_me/KillproofUITable.cpp @@ -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; } diff --git a/killproof_me/dllmain.cpp b/killproof_me/dllmain.cpp index 13af87c..3306e8f 100644 --- a/killproof_me/dllmain.cpp +++ b/killproof_me/dllmain.cpp @@ -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()) {