ref: soft: cleanup unused variables

This commit is contained in:
Alibek Omarov
2026-05-13 10:46:59 +05:00
parent ff8efebba2
commit 47aad1b3a3
2 changed files with 1 additions and 3 deletions

View File

@@ -794,7 +794,6 @@ static void R_DrawBEntitiesOnList( void )
for( i = 0; i < tr.draw_list->num_edge_entities && !FBitSet( RI.rvp.flags, RF_ONLY_CLIENTDRAW ); i++ )
{
int k;
RI.currententity = tr.draw_list->edge_entities[i];
RI.currentmodel = RI.currententity->model;
if( !RI.currentmodel )
@@ -872,7 +871,6 @@ void R_DrawBrushModel( cl_entity_t *pent )
vec3_t mins, maxs;
float minmaxs[6];
mnode_t *topnode;
int k;
edge_t ledges[NUMSTACKEDGES
+ (( CACHE_SIZE - 1 ) / sizeof( edge_t )) + 1];
surf_t lsurfs[NUMSTACKSURFACES

View File

@@ -852,7 +852,7 @@ static surfcache_t *D_SCAlloc( int width, int size )
if(( size <= 0 ) || ( size > 0x10000000 ))
gEngfuncs.Host_Error( "%s: bad cache size %d\n", __func__, size );
size = (int)&((surfcache_t *)0 )->data[size];
size = offsetof( surfcache_t, data ) + size;
size = ( size + 3 ) & ~3;
if( size > sc_size )
gEngfuncs.Host_Error( "%s: %i > cache size of %i", __func__, size, sc_size );