From af5d190bc45f05f889cd5197bdac2e6d0edc9e4e Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 4 Mar 2026 06:05:46 +0500 Subject: [PATCH] engine: common: mod_bmodel: make texture name array larger so it fits both world name and miptex name --- engine/client/identification.c | 1 - engine/common/mod_bmodel.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/engine/client/identification.c b/engine/client/identification.c index ad161576..3713c356 100644 --- a/engine/client/identification.c +++ b/engine/client/identification.c @@ -639,7 +639,6 @@ void ID_GetMD5ForAddress( char *key, netadr_t adr, size_t size ) MD5Context_t ctx; byte buf[32], md5[16]; size_t bufsize = 0; - bloomfilter_t value = id; switch( NET_NetadrType( &adr )) { diff --git a/engine/common/mod_bmodel.c b/engine/common/mod_bmodel.c index dcf0d239..51d7ea3d 100644 --- a/engine/common/mod_bmodel.c +++ b/engine/common/mod_bmodel.c @@ -2686,7 +2686,7 @@ static void Mod_LoadTextureData( model_t *mod, dbspmodel_t *bmod, int textureInd // WAD failed, so use internal texture (if present) if( mipTex->offsets[0] > 0 && texture->gl_texturenum == 0 ) { - char texName[64]; + string texName; const size_t size = Mod_CalculateMipTexSize( mipTex, usesCustomPalette ); Q_snprintf( texName, sizeof( texName ), "#%s:%s.mip", loadstat.name, mipTex->name ); @@ -2719,7 +2719,7 @@ static void Mod_LoadTextureData( model_t *mod, dbspmodel_t *bmod, int textureInd if( FBitSet( REF_GET_PARM( PARM_TEX_FLAGS, texture->gl_texturenum ), TF_HAS_LUMA ) && !texture->fb_texturenum ) { - char texName[64]; + string texName; Q_snprintf( texName, sizeof( texName ), "#%s:%s_luma.mip", loadstat.name, mipTex->name );