From 382b19e458c5cf23810a5bb8b7c4750f19a1f4fe Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 23 Feb 2026 21:46:20 +0500 Subject: [PATCH] engine: minor refactoring --- engine/client/client.h | 7 +++++++ engine/common/mod_local.h | 10 ---------- engine/common/mod_studio.c | 2 +- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/engine/client/client.h b/engine/client/client.h index 50d3e0d8..58d235b0 100644 --- a/engine/client/client.h +++ b/engine/client/client.h @@ -1138,6 +1138,13 @@ void Con_Bottom( void ); void Con_PageDown( int lines ); void Con_PageUp( int lines ); +// +// mod_dbghulls.c +// +void R_DrawWorldHull( void ); +void R_DrawModelHull( model_t *mod ); +void Mod_ReleaseHullPolygons( void ); + // // s_main.c // diff --git a/engine/common/mod_local.h b/engine/common/mod_local.h index 735b77d6..2fa6b605 100644 --- a/engine/common/mod_local.h +++ b/engine/common/mod_local.h @@ -178,21 +178,12 @@ int Mod_SaveLump( const char *filename, const int lump, void *lumpdata, int lump mleaf_t *Mod_PointInLeaf( const vec3_t p, mnode_t *node, model_t *mod ); int Mod_SampleSizeForFace( const msurface_t *surf ); byte *Mod_GetPVSForPoint( const vec3_t p ); -void Mod_UnloadBrushModel( model_t *mod ); void Mod_PrintWorldStats_f( void ); -// -// mod_dbghulls.c -// -void R_DrawWorldHull( void ); -void R_DrawModelHull( model_t *mod ); -void Mod_ReleaseHullPolygons( void ); - // // mod_studio.c // void Mod_LoadStudioModel( model_t *mod, const void *buffer, qboolean *loaded ); -void Mod_UnloadStudioModel( model_t *mod ); void Mod_InitStudioAPI( void ); void Mod_InitStudioHull( void ); void Mod_ResetStudioAPI( void ); @@ -202,7 +193,6 @@ void Mod_StudioGetAttachment( const edict_t *e, int iAttachment, float *org, flo void Mod_GetBonePosition( const edict_t *e, int iBone, float *org, float *ang ); hull_t *Mod_HullForStudio( model_t *m, float frame, int seq, vec3_t ang, vec3_t org, vec3_t size, byte *pcnt, byte *pbl, int *hitboxes, edict_t *ed ); void *R_StudioGetAnim( studiohdr_t *m_pStudioHeader, model_t *m_pSubModel, mstudioseqdesc_t *pseqdesc ); -void Mod_StudioComputeBounds( void *buffer, vec3_t mins, vec3_t maxs, qboolean ignore_sequences ); int Mod_HitgroupForStudioHull( int index ); void Mod_ClearStudioCache( void ); diff --git a/engine/common/mod_studio.c b/engine/common/mod_studio.c index edfcdbba..2907d015 100644 --- a/engine/common/mod_studio.c +++ b/engine/common/mod_studio.c @@ -664,7 +664,7 @@ static void Mod_StudioAccumulateBoneVerts( vec3_t mins, vec3_t maxs, int *numver StudioComputeBounds ==================== */ -void Mod_StudioComputeBounds( void *buffer, vec3_t mins, vec3_t maxs, qboolean ignore_sequences ) +static void Mod_StudioComputeBounds( void *buffer, vec3_t mins, vec3_t maxs, qboolean ignore_sequences ) { int i, j, k, numseq; studiohdr_t *pstudiohdr;