1.1 --- a/extensions/sdktools/voice.cpp Sat Mar 16 18:05:22 2013 -0400
1.2 +++ b/extensions/sdktools/voice.cpp Sat Mar 16 22:15:25 2013 -0400
1.3 @@ -68,7 +68,7 @@
1.4 {
1.5 if (g_VoiceHookCount == 0)
1.6 {
1.7 - SH_REMOVE_HOOK_MEMFUNC(IVoiceServer, SetClientListening, voiceserver, &g_SdkTools, &SDKTools::OnSetClientListening, false);
1.8 + SH_REMOVE_HOOK(IVoiceServer, SetClientListening, voiceserver, SH_MEMBER(&g_SdkTools, &SDKTools::OnSetClientListening), false);
1.9 return true;
1.10 }
1.11
1.12 @@ -79,7 +79,7 @@
1.13 {
1.14 if (!g_VoiceHookCount++)
1.15 {
1.16 - SH_ADD_HOOK_MEMFUNC(IVoiceServer, SetClientListening, voiceserver, &g_SdkTools, &SDKTools::OnSetClientListening, false);
1.17 + SH_ADD_HOOK(IVoiceServer, SetClientListening, voiceserver, SH_MEMBER(&g_SdkTools, &SDKTools::OnSetClientListening), false);
1.18 }
1.19 }
1.20
1.21 @@ -88,7 +88,7 @@
1.22 memset(g_VoiceMap, 0, sizeof(g_VoiceMap));
1.23 memset(g_ClientMutes, 0, sizeof(g_ClientMutes));
1.24
1.25 - SH_ADD_HOOK_MEMFUNC(IServerGameClients, ClientCommand, serverClients, this, &SDKTools::OnClientCommand, true);
1.26 + SH_ADD_HOOK(IServerGameClients, ClientCommand, serverClients, SH_MEMBER(this, &SDKTools::OnClientCommand), true);
1.27 }
1.28
1.29 #if SOURCE_ENGINE >= SE_ORANGEBOX