1.1 --- a/sourcemm/sample_mm/SamplePlugin.cpp Fri Apr 22 14:29:25 2005 +0000
1.2 +++ b/sourcemm/sample_mm/SamplePlugin.cpp Fri Apr 22 14:36:21 2005 +0000
1.3 @@ -139,12 +139,6 @@
1.4 //Hook ClientCommand to our function
1.5 SH_ADD_HOOK_MEMFUNC(IServerGameClients, ClientCommand, m_ServerClients, &g_SamplePlugin, ClientCommand, false);
1.6
1.7 - //Now, importantly, SourceHook has modified the layout of the above classes.
1.8 - //If we want to call them in their original state (i.e., without invoking hooks)
1.9 - // we must request a "Call Class" from SourceHook.
1.10 - m_ServerClients_CC = SH_GET_CALLCLASS(IServerGameClients, m_ServerClients);
1.11 - m_ServerDll = SH_GET_CALLCLASS(IServerGameDLL, m_ServerDll);
1.12 -
1.13 return true;
1.14 }
1.15
1.16 @@ -165,10 +159,6 @@
1.17 SH_REMOVE_HOOK_MEMFUNC(IServerGameClients, ClientConnect, m_ServerClients, &g_SamplePlugin, ClientConnect, false);
1.18 SH_REMOVE_HOOK_MEMFUNC(IServerGameClients, ClientCommand, m_ServerClients, &g_SamplePlugin, ClientCommand, false);
1.19
1.20 - //Lastly, release the call classes we requested
1.21 - SH_RELEASE_CALLCLASS(m_ServerDll_CC);
1.22 - SH_RELEASE_CALLCLASS(m_ServerClients_CC);
1.23 -
1.24 return true;
1.25 }
1.26