Don't mark yourself as party state

This commit is contained in:
BenCat07 2019-09-28 13:28:29 +02:00 committed by bencat07
parent 490aba319f
commit 57e095eb70

View File

@ -170,9 +170,10 @@ void friend_party()
re::CTFPartyClient *pc = re::CTFPartyClient::GTFPartyClient();
if (pc)
{
unsigned steamid_local = g_ISteamUser->GetSteamID().GetAccountID();
std::vector<unsigned> valid_steam_ids = pc->GetPartySteamIDs();
for (auto steamid : valid_steam_ids)
if (steamid)
if (steamid && steamid != steamid_local)
playerlist::ChangeState(steamid, playerlist::k_EState::PARTY);
}
}