From a5a8e03d2d3442b90db47c60616a1214eec601ce Mon Sep 17 00:00:00 2001 From: Benoist <14257866+Kenzzer@users.noreply.github.com> Date: Thu, 26 Feb 2026 14:02:04 +0100 Subject: [PATCH] Revert "Guard IClient Netchan Path by GamedData (#2397)" (#2404) --- core/PlayerManager.cpp | 11 +++-------- gamedata/core.games/common.games.txt | 1 - 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/core/PlayerManager.cpp b/core/PlayerManager.cpp index 842ba815..1d541daa 100644 --- a/core/PlayerManager.cpp +++ b/core/PlayerManager.cpp @@ -2046,15 +2046,10 @@ void CPlayer::Initialize(const char *name, const char *ip, edict_t *pEntity) else #endif { - m_pIClient = nullptr; - - const char *skip = g_pGameConf->GetKeyValue("SkipNetchanIClient"); - if (skip == nullptr || strcmp(skip, "yes") != 0) + INetChannel *pNetChan = static_cast(engine->GetPlayerNetInfo(m_iIndex)); + if (pNetChan) { - if (INetChannel *pNetChan = static_cast(engine->GetPlayerNetInfo(m_iIndex))) - { - m_pIClient = static_cast(pNetChan->GetMsgHandler()); - } + m_pIClient = static_cast(pNetChan->GetMsgHandler()); } } #endif diff --git a/gamedata/core.games/common.games.txt b/gamedata/core.games/common.games.txt index 6deb2f13..7e0f702a 100644 --- a/gamedata/core.games/common.games.txt +++ b/gamedata/core.games/common.games.txt @@ -405,7 +405,6 @@ "Keys" { "RadioMenuClosesOnInvalidSlot" "yes" - "SkipNetchanIClient" "no" } }