mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-28 15:45:46 +03:00
SV_ProcessFile: Wrap Con_Printf in Con_NetPrintf to avoid spam in HLDS console
This commit is contained in:
parent
987ee51a6b
commit
98db4672cf
@ -3514,7 +3514,7 @@ void SV_ProcessFile(client_t *cl, char *filename)
|
|||||||
|
|
||||||
if (filename[0] != '!')
|
if (filename[0] != '!')
|
||||||
{
|
{
|
||||||
Con_Printf("Ignoring non-customization file upload of %s\n", filename);
|
Con_NetPrintf("Ignoring non-customization file upload of %s\n", filename);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3534,13 +3534,13 @@ void SV_ProcessFile(client_t *cl, char *filename)
|
|||||||
|
|
||||||
if (!bFound)
|
if (!bFound)
|
||||||
{
|
{
|
||||||
Con_Printf("%s: Unrequested decal\n", __func__);
|
Con_NetPrintf("%s: Unrequested decal\n", __func__);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (resource->nDownloadSize != cl->netchan.tempbuffersize)
|
if (resource->nDownloadSize != cl->netchan.tempbuffersize)
|
||||||
{
|
{
|
||||||
Con_Printf("%s: Downloaded %i bytes for purported %i byte file\n", __func__, cl->netchan.tempbuffersize, resource->nDownloadSize);
|
Con_NetPrintf("%s: Downloaded %i bytes for purported %i byte file\n", __func__, cl->netchan.tempbuffersize, resource->nDownloadSize);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3549,7 +3549,7 @@ void SV_ProcessFile(client_t *cl, char *filename)
|
|||||||
#ifdef REHLDS_FIXES
|
#ifdef REHLDS_FIXES
|
||||||
if (!CustomDecal_Validate(cl->netchan.tempbuffer, cl->netchan.tempbuffersize))
|
if (!CustomDecal_Validate(cl->netchan.tempbuffer, cl->netchan.tempbuffersize))
|
||||||
{
|
{
|
||||||
Con_Printf("Invalid custom decal from %s\n", cl->name);
|
Con_NetPrintf("Invalid custom decal from %s\n", cl->name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3571,7 +3571,7 @@ void SV_ProcessFile(client_t *cl, char *filename)
|
|||||||
|
|
||||||
iCustomFlags |= (FCUST_FROMHPAK | FCUST_WIPEDATA | RES_CUSTOM);
|
iCustomFlags |= (FCUST_FROMHPAK | FCUST_WIPEDATA | RES_CUSTOM);
|
||||||
if (!COM_CreateCustomization(&cl->customdata, resource, -1, iCustomFlags, NULL, NULL))
|
if (!COM_CreateCustomization(&cl->customdata, resource, -1, iCustomFlags, NULL, NULL))
|
||||||
Con_Printf("Error parsing custom decal from %s\n", cl->name);
|
Con_NetPrintf("Error parsing custom decal from %s\n", cl->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
qboolean SV_FilterPacket(void)
|
qboolean SV_FilterPacket(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user