Team Fortress 2 forced change of Party leader pass

This commit is contained in:
LightCat 2019-03-30 12:35:08 +01:00
parent e90baccfe9
commit 69b0a6550a

View File

@ -329,7 +329,7 @@ void party_leader_pass()
{ {
re::CTFGCClientSystem *gc = re::CTFGCClientSystem::GTFGCClientSystem(); re::CTFGCClientSystem *gc = re::CTFGCClientSystem::GTFGCClientSystem();
re::CTFPartyClient *pc = re::CTFPartyClient::GTFPartyClient(); re::CTFPartyClient *pc = re::CTFPartyClient::GTFPartyClient();
if (gc && !gc->BHaveLiveMatch() && pc->GetNumMembers() > 1) if (gc && gc->BHaveLiveMatch() && pc->GetNumMembers() > 1)
{ {
CSteamID steamid; CSteamID steamid;
pc->GetCurrentPartyLeader(steamid); pc->GetCurrentPartyLeader(steamid);
@ -341,7 +341,7 @@ void party_leader_pass()
{ {
if (found) if (found)
break; break;
if (peer.second.is_ingame) if (!peer.second.is_ingame)
{ {
for (auto &id : valid_steam_ids) for (auto &id : valid_steam_ids)
if (id == peer.second.steamid) if (id == peer.second.steamid)