mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-28 15:45:46 +03:00
Do not propagate custom logos according to sv_send_logos cvar
This commit is contained in:
parent
462fe55fb8
commit
ec47e4d978
@ -5748,6 +5748,12 @@ void SV_PropagateCustomizations(void)
|
|||||||
if (pCust->bInUse)
|
if (pCust->bInUse)
|
||||||
{
|
{
|
||||||
pResource = &pCust->resource;
|
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, svc_customization);
|
||||||
MSG_WriteByte(&host_client->netchan.message, i);
|
MSG_WriteByte(&host_client->netchan.message, i);
|
||||||
MSG_WriteByte(&host_client->netchan.message, pResource->type);
|
MSG_WriteByte(&host_client->netchan.message, pResource->type);
|
||||||
|
@ -160,6 +160,11 @@ void SV_Customization(client_t *pPlayer, resource_t *pResource, qboolean bSkipPl
|
|||||||
int nPlayerNumber;
|
int nPlayerNumber;
|
||||||
client_t *pHost;
|
client_t *pHost;
|
||||||
|
|
||||||
|
#ifdef REHLDS_FIXES
|
||||||
|
if ((pResource->ucFlags & RES_CUSTOM) && !sv_send_logos.value)
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Get originating player id
|
// Get originating player id
|
||||||
for (i = 0, pHost = g_psvs.clients; i < g_psvs.maxclients; i++, pHost++)
|
for (i = 0, pHost = g_psvs.clients; i < g_psvs.maxclients; i++, pHost++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user