mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-29 16:24:16 +00:00
engine: common: custom: increased custom decal size limit to 128Kb, added wrong size warning
This commit is contained in:
parent
707c93c32c
commit
49d93c0e76
@ -101,7 +101,7 @@ qboolean COM_CreateCustomization( customization_t *pListHead, resource_t *pResou
|
|||||||
{
|
{
|
||||||
if( !FBitSet( flags, FCUST_IGNOREINIT ))
|
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->bTranslated = true;
|
||||||
pCust->nUserData1 = 0;
|
pCust->nUserData1 = 0;
|
||||||
@ -112,6 +112,10 @@ qboolean COM_CreateCustomization( customization_t *pListHead, resource_t *pResou
|
|||||||
else pCust->pInfo = NULL;
|
else pCust->pInfo = NULL;
|
||||||
if( nLumps ) *nLumps = 1;
|
if( nLumps ) *nLumps = 1;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Con_Printf( S_WARN "Ignoring custom decal \"%s\": wrong size (%i bytes)\n", pResource->szFileName, pResource->nDownloadSize );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user