engine: common: custom: increased custom decal size limit to 128Kb, added wrong size warning

This commit is contained in:
SNMetamorph 2022-11-22 18:55:44 +04:00 committed by Alibek Omarov
parent 707c93c32c
commit 49d93c0e76
1 changed files with 5 additions and 1 deletions

View File

@ -101,7 +101,7 @@ qboolean COM_CreateCustomization( customization_t *pListHead, resource_t *pResou
{
if( !FBitSet( flags, FCUST_IGNOREINIT ))
{
if( pResource->nDownloadSize >= (1 * 1024) && pResource->nDownloadSize <= ( 16 * 1024 ))
if( pResource->nDownloadSize >= (1 * 1024) && pResource->nDownloadSize <= ( 128 * 1024 ))
{
pCust->bTranslated = true;
pCust->nUserData1 = 0;
@ -112,6 +112,10 @@ qboolean COM_CreateCustomization( customization_t *pListHead, resource_t *pResou
else pCust->pInfo = NULL;
if( nLumps ) *nLumps = 1;
}
else
{
Con_Printf( S_WARN "Ignoring custom decal \"%s\": wrong size (%i bytes)\n", pResource->szFileName, pResource->nDownloadSize );
}
}
}
}