Fix replay workaround not triggering (#2033)

This commit is contained in:
hydrogen-mvm
2023-07-29 20:53:17 +00:00
committed by GitHub
parent 8d60a46358
commit a20eb08dc6
2 changed files with 2 additions and 7 deletions
+2 -4
View File
@@ -65,9 +65,6 @@ SH_DECL_HOOK2_void(INetChannel, ProcessPacket, SH_NOATTRIB, 0, struct netpacket_
SourceHook::CallClass<IBaseFileSystem> *basefilesystemPatch = NULL;
CHookManager::CHookManager()
#if SOURCE_ENGINE == SE_TF2
: replay_enabled("replay_enabled", false)
#endif
{
m_usercmdsPreFwd = NULL;
m_usercmdsFwd = NULL;
@@ -446,7 +443,8 @@ void CHookManager::NetChannelHook(int client)
/* Initial Hook */
#if SOURCE_ENGINE == SE_TF2
if (replay_enabled.GetBool())
ConVarRef replay_enable("replay_enable", false);
if (replay_enable.GetBool())
{
if (!m_bFSTranHookWarned)
{
-3
View File
@@ -90,9 +90,6 @@ private:
#endif
INetChannel *m_pActiveNetChannel;
bool m_bFSTranHookWarned = false;
#if SOURCE_ENGINE == SE_TF2
ConVarRef replay_enabled;
#endif
};
extern CHookManager g_Hooks;