1.1 --- a/extensions/sdktools/voice.cpp Wed Jul 10 20:46:00 2013 -0400
1.2 +++ b/extensions/sdktools/voice.cpp Fri Jul 12 02:31:41 2013 -0400
1.3 @@ -59,7 +59,7 @@
1.4 SH_DECL_HOOK3(IVoiceServer, SetClientListening, SH_NOATTRIB, 0, bool, int, int, bool);
1.5
1.6 #if SOURCE_ENGINE == SE_DOTA
1.7 -SH_DECL_HOOK2_void(IServerGameClients, ClientCommand, SH_NOATTRIB, 0, int, const CCommand &);
1.8 +SH_DECL_HOOK2_void(IServerGameClients, ClientCommand, SH_NOATTRIB, 0, CEntityIndex, const CCommand &);
1.9 #elif SOURCE_ENGINE >= SE_ORANGEBOX
1.10 SH_DECL_HOOK2_void(IServerGameClients, ClientCommand, SH_NOATTRIB, 0, edict_t *, const CCommand &);
1.11 #else
1.12 @@ -94,8 +94,9 @@
1.13 }
1.14
1.15 #if SOURCE_ENGINE == SE_DOTA
1.16 -void SDKTools::OnClientCommand(int client, const CCommand &args)
1.17 +void SDKTools::OnClientCommand(CEntityIndex index, const CCommand &args)
1.18 {
1.19 + int client = index.Get();
1.20 #elif SOURCE_ENGINE >= SE_ORANGEBOX
1.21 void SDKTools::OnClientCommand(edict_t *pEntity, const CCommand &args)
1.22 {