2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 09:56:22 +01:00

engine: remove unused texFlags argument in Mod_LoadSpriteModel

This commit is contained in:
Alibek Omarov 2024-07-21 02:59:51 +03:00
parent fa74acb5f0
commit a133b1c2a9
4 changed files with 5 additions and 6 deletions

View File

@ -1182,7 +1182,7 @@ static qboolean CL_LoadHudSprite( const char *szSpriteName, model_t *m_pSprite,
if( type == SPR_CLIENT || type == SPR_HUDSPRITE )
SetBits( m_pSprite->flags, MODEL_CLIENT );
m_pSprite->numtexinfo = texFlags; // store texFlags into numtexinfo
m_pSprite->numtexinfo = texFlags; // store texFlags for renderer into numtexinfo
if( !FS_FileExists( szSpriteName, false ) )
{
@ -1209,7 +1209,7 @@ static qboolean CL_LoadHudSprite( const char *szSpriteName, model_t *m_pSprite,
ref.dllFuncs.Mod_LoadMapSprite( m_pSprite, buf, size, &loaded );
else
{
Mod_LoadSpriteModel( m_pSprite, buf, &loaded, texFlags );
Mod_LoadSpriteModel( m_pSprite, buf, &loaded );
ref.dllFuncs.Mod_ProcessRenderData( m_pSprite, true, buf );
}

View File

@ -194,7 +194,7 @@ void Mod_ClearStudioCache( void );
//
// mod_sprite.c
//
void Mod_LoadSpriteModel( model_t *mod, const void *buffer, qboolean *loaded, uint texFlags );
void Mod_LoadSpriteModel( model_t *mod, const void *buffer, qboolean *loaded );
#endif
#endif//MOD_LOCAL_H

View File

@ -30,7 +30,7 @@ Mod_LoadSpriteModel
load sprite model
====================
*/
void Mod_LoadSpriteModel( model_t *mod, const void *buffer, qboolean *loaded, uint texFlags )
void Mod_LoadSpriteModel( model_t *mod, const void *buffer, qboolean *loaded )
{
dsprite_q1_t *pinq1;
dsprite_hl_t *pinhl;

View File

@ -300,7 +300,7 @@ model_t *Mod_LoadModel( model_t *mod, qboolean crash )
Mod_LoadStudioModel( mod, buf, &loaded );
break;
case IDSPRITEHEADER:
Mod_LoadSpriteModel( mod, buf, &loaded, 0 );
Mod_LoadSpriteModel( mod, buf, &loaded );
break;
case IDALIASHEADER:
// REFTODO: move server-related code here
@ -310,7 +310,6 @@ model_t *Mod_LoadModel( model_t *mod, qboolean crash )
case HLBSP_VERSION:
case QBSP2_VERSION:
Mod_LoadBrushModel( mod, buf, &loaded );
// ref.dllFuncs.Mod_LoadModel( mod_brush, mod, buf, &loaded, 0 );
break;
default:
Mem_Free( buf );