2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-27 07:05:43 +03:00

Do not propagate custom logos according to sv_send_logos cvar

This commit is contained in:
s1lentq 2024-03-18 22:17:23 +07:00
parent 462fe55fb8
commit ec47e4d978
2 changed files with 11 additions and 0 deletions

View File

@ -5748,6 +5748,12 @@ void SV_PropagateCustomizations(void)
if (pCust->bInUse)
{
pResource = &pCust->resource;
#ifdef REHLDS_FIXES
if ((pResource->ucFlags & RES_CUSTOM) && !sv_send_logos.value)
continue;
#endif
MSG_WriteByte(&host_client->netchan.message, svc_customization);
MSG_WriteByte(&host_client->netchan.message, i);
MSG_WriteByte(&host_client->netchan.message, pResource->type);

View File

@ -160,6 +160,11 @@ void SV_Customization(client_t *pPlayer, resource_t *pResource, qboolean bSkipPl
int nPlayerNumber;
client_t *pHost;
#ifdef REHLDS_FIXES
if ((pResource->ucFlags & RES_CUSTOM) && !sv_send_logos.value)
return;
#endif
// Get originating player id
for (i = 0, pHost = g_psvs.clients; i < g_psvs.maxclients; i++, pHost++)
{