Fix replay workaround not triggering (#2033)
This commit is contained in:
parent
8d60a46358
commit
a20eb08dc6
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user