From 49d93c0e76e5d3c67edc545db658a80762042d2e Mon Sep 17 00:00:00 2001 From: SNMetamorph <25657591+SNMetamorph@users.noreply.github.com> Date: Tue, 22 Nov 2022 18:55:44 +0400 Subject: [PATCH] engine: common: custom: increased custom decal size limit to 128Kb, added wrong size warning --- engine/common/custom.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/engine/common/custom.c b/engine/common/custom.c index cf9d0431..1cb8f746 100644 --- a/engine/common/custom.c +++ b/engine/common/custom.c @@ -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 ); + } } } }