Skip to content

Commit

Permalink
fixed loading of players when leaving squad within arcdps delay
Browse files Browse the repository at this point in the history
  • Loading branch information
knoxfighter committed Jun 4, 2022
1 parent 5941e28 commit 9d0e450
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions killproof_me/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,6 @@ uintptr_t mod_combat(cbtevent* ev, ag* src, ag* dst, const char* skillname, uint
selfAccountName = username;
}

// add to tracking and instance
addPlayerAll(username);

auto playerIt = cachedPlayers.find(username);
if (playerIt == cachedPlayers.end()) {
// no element found, create it
Expand All @@ -217,6 +214,9 @@ uintptr_t mod_combat(cbtevent* ev, ag* src, ag* dst, const char* skillname, uint

// load killproofs
loadKillproofsSizeChecked(player);

// add to tracking and instance
addPlayerAll(username);
}
} else {
Player& player = playerIt->second;
Expand All @@ -232,6 +232,9 @@ uintptr_t mod_combat(cbtevent* ev, ag* src, ag* dst, const char* skillname, uint

if (player.addedBy == AddedBy::Arcdps && !player.self) {
player.resetJoinedTime();

// add to tracking and instance
addPlayerAll(username);
}
}

Expand Down

0 comments on commit 9d0e450

Please sign in to comment.