Update extension.cpp
This commit is contained in:
parent
4980a3c067
commit
12b109c564
@ -61,7 +61,7 @@ DETOUR_DECL_STATIC6(Detour_SendTo, int, int, s, char *, buf, int, len, int, flag
|
|||||||
{
|
{
|
||||||
if (memcmp(buf, A2S_INFO_REPLY, 5) == 0)
|
if (memcmp(buf, A2S_INFO_REPLY, 5) == 0)
|
||||||
{
|
{
|
||||||
g_pSM->LogMessage(myself, "A2S_INFO_REPLY: %s", buf);
|
// g_pSM->LogMessage(myself, "A2S_INFO_REPLY: %s", buf);
|
||||||
|
|
||||||
char *NewBuf;
|
char *NewBuf;
|
||||||
char *OldBuf;
|
char *OldBuf;
|
||||||
@ -122,10 +122,10 @@ DETOUR_DECL_STATIC6(Detour_SendTo, int, int, s, char *, buf, int, len, int, flag
|
|||||||
return DETOUR_STATIC_CALL(Detour_SendTo)(s, NewBuf, len, flags, to, tolen);
|
return DETOUR_STATIC_CALL(Detour_SendTo)(s, NewBuf, len, flags, to, tolen);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (memcmp(buf, A2S_PLAYER_REPLY, 5) == 0)
|
// if (memcmp(buf, A2S_PLAYER_REPLY, 5) == 0)
|
||||||
{
|
// {
|
||||||
g_pSM->LogMessage(myself, "A2S_PLAYER_REPLY: %s", buf);
|
// g_pSM->LogMessage(myself, "A2S_PLAYER_REPLY: %s", buf);
|
||||||
}
|
// }
|
||||||
|
|
||||||
return DETOUR_STATIC_CALL(Detour_SendTo)(s, buf, len, flags, to, tolen);
|
return DETOUR_STATIC_CALL(Detour_SendTo)(s, buf, len, flags, to, tolen);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user