Fixed SDKTools dota build.
Fixed SDKTools dota build.
1.1 --- a/extensions/sdktools/tenatives.cpp Tue May 14 10:24:47 2013 -0400
1.2 +++ b/extensions/sdktools/tenatives.cpp Tue May 14 11:27:06 2013 -0400
1.3 @@ -138,7 +138,13 @@
1.4
1.5 for (size_t i=0; i<size; i++)
1.6 {
1.7 - pl_array[i] = pFilter->GetRecipientIndex(i);
1.8 + int index;
1.9 +#if SOURCE_ENGINE == SE_DOTA
1.10 + pFilter->GetRecipientIndex(&index, i);
1.11 +#else
1.12 + index = pFilter->GetRecipientIndex(i);
1.13 +#endif
1.14 + pl_array[i] = index;
1.15 }
1.16
1.17 return size;
2.1 --- a/extensions/sdktools/vsound.cpp Tue May 14 10:24:47 2013 -0400
2.2 +++ b/extensions/sdktools/vsound.cpp Tue May 14 11:27:06 2013 -0400
2.3 @@ -68,7 +68,13 @@
2.4
2.5 for (size_t i=0; i<size; i++)
2.6 {
2.7 - pl_array[i] = pFilter->GetRecipientIndex(i);
2.8 + int index;
2.9 +#if SOURCE_ENGINE == SE_DOTA
2.10 + pFilter->GetRecipientIndex(&index, i);
2.11 +#else
2.12 + index = pFilter->GetRecipientIndex(i);
2.13 +#endif
2.14 + pl_array[i] = index;
2.15 }
2.16
2.17 return size;