Revert "Guard IClient Netchan Path by GamedData (#2397)" (#2404)

This commit is contained in:
Benoist
2026-02-26 08:02:04 -05:00
committed by GitHub
parent 0d299402b9
commit a5a8e03d2d
2 changed files with 3 additions and 9 deletions
+3 -8
View File
@@ -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<INetChannel *>(engine->GetPlayerNetInfo(m_iIndex));
if (pNetChan)
{
if (INetChannel *pNetChan = static_cast<INetChannel *>(engine->GetPlayerNetInfo(m_iIndex)))
{
m_pIClient = static_cast<IClient *>(pNetChan->GetMsgHandler());
}
m_pIClient = static_cast<IClient *>(pNetChan->GetMsgHandler());
}
}
#endif
-1
View File
@@ -405,7 +405,6 @@
"Keys"
{
"RadioMenuClosesOnInvalidSlot" "yes"
"SkipNetchanIClient" "no"
}
}