From 69b0a6550afce895d53d4cf4b6c270ce9af91ef7 Mon Sep 17 00:00:00 2001 From: LightCat Date: Sat, 30 Mar 2019 12:35:08 +0100 Subject: [PATCH] Team Fortress 2 forced change of Party leader pass --- src/irc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/irc.cpp b/src/irc.cpp index ff100832..6a20c304 100644 --- a/src/irc.cpp +++ b/src/irc.cpp @@ -329,19 +329,19 @@ void party_leader_pass() { re::CTFGCClientSystem *gc = re::CTFGCClientSystem::GTFGCClientSystem(); re::CTFPartyClient *pc = re::CTFPartyClient::GTFPartyClient(); - if (gc && !gc->BHaveLiveMatch() && pc->GetNumMembers() > 1) + if (gc && gc->BHaveLiveMatch() && pc->GetNumMembers() > 1) { CSteamID steamid; pc->GetCurrentPartyLeader(steamid); if (steamid.GetAccountID() == g_ISteamUser->GetSteamID().GetAccountID()) { std::vector valid_steam_ids = pc->GetPartySteamIDs(); - bool found = false; + bool found = false; for (auto &peer : irc.getPeers()) { if (found) break; - if (peer.second.is_ingame) + if (!peer.second.is_ingame) { for (auto &id : valid_steam_ids) if (id == peer.second.steamid)