Fix replay workaround not triggering (#2033)

This commit is contained in:
hydrogen-mvm 2023-07-29 16:53:17 -04:00 committed by GitHub
parent 8d60a46358
commit a20eb08dc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View File

@ -65,9 +65,6 @@ SH_DECL_HOOK2_void(INetChannel, ProcessPacket, SH_NOATTRIB, 0, struct netpacket_
SourceHook::CallClass<IBaseFileSystem> *basefilesystemPatch = NULL; SourceHook::CallClass<IBaseFileSystem> *basefilesystemPatch = NULL;
CHookManager::CHookManager() CHookManager::CHookManager()
#if SOURCE_ENGINE == SE_TF2
: replay_enabled("replay_enabled", false)
#endif
{ {
m_usercmdsPreFwd = NULL; m_usercmdsPreFwd = NULL;
m_usercmdsFwd = NULL; m_usercmdsFwd = NULL;
@ -446,7 +443,8 @@ void CHookManager::NetChannelHook(int client)
/* Initial Hook */ /* Initial Hook */
#if SOURCE_ENGINE == SE_TF2 #if SOURCE_ENGINE == SE_TF2
if (replay_enabled.GetBool()) ConVarRef replay_enable("replay_enable", false);
if (replay_enable.GetBool())
{ {
if (!m_bFSTranHookWarned) if (!m_bFSTranHookWarned)
{ {

View File

@ -90,9 +90,6 @@ private:
#endif #endif
INetChannel *m_pActiveNetChannel; INetChannel *m_pActiveNetChannel;
bool m_bFSTranHookWarned = false; bool m_bFSTranHookWarned = false;
#if SOURCE_ENGINE == SE_TF2
ConVarRef replay_enabled;
#endif
}; };
extern CHookManager g_Hooks; extern CHookManager g_Hooks;