Update extension.cpp

This commit is contained in:
zaCade 2019-05-20 21:56:49 +02:00
parent 4980a3c067
commit 12b109c564

View File

@ -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)
{
g_pSM->LogMessage(myself, "A2S_INFO_REPLY: %s", buf);
// g_pSM->LogMessage(myself, "A2S_INFO_REPLY: %s", buf);
char *NewBuf;
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);
}
if (memcmp(buf, A2S_PLAYER_REPLY, 5) == 0)
{
g_pSM->LogMessage(myself, "A2S_PLAYER_REPLY: %s", buf);
}
// if (memcmp(buf, A2S_PLAYER_REPLY, 5) == 0)
// {
// g_pSM->LogMessage(myself, "A2S_PLAYER_REPLY: %s", buf);
// }
return DETOUR_STATIC_CALL(Detour_SendTo)(s, buf, len, flags, to, tolen);
}