Don't mark yourself as party state
This commit is contained in:
parent
490aba319f
commit
57e095eb70
@ -170,9 +170,10 @@ void friend_party()
|
|||||||
re::CTFPartyClient *pc = re::CTFPartyClient::GTFPartyClient();
|
re::CTFPartyClient *pc = re::CTFPartyClient::GTFPartyClient();
|
||||||
if (pc)
|
if (pc)
|
||||||
{
|
{
|
||||||
|
unsigned steamid_local = g_ISteamUser->GetSteamID().GetAccountID();
|
||||||
std::vector<unsigned> valid_steam_ids = pc->GetPartySteamIDs();
|
std::vector<unsigned> valid_steam_ids = pc->GetPartySteamIDs();
|
||||||
for (auto steamid : valid_steam_ids)
|
for (auto steamid : valid_steam_ids)
|
||||||
if (steamid)
|
if (steamid && steamid != steamid_local)
|
||||||
playerlist::ChangeState(steamid, playerlist::k_EState::PARTY);
|
playerlist::ChangeState(steamid, playerlist::k_EState::PARTY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user