mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
ref: soft: cleanup unused variables
This commit is contained in:
@@ -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++ )
|
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.currententity = tr.draw_list->edge_entities[i];
|
||||||
RI.currentmodel = RI.currententity->model;
|
RI.currentmodel = RI.currententity->model;
|
||||||
if( !RI.currentmodel )
|
if( !RI.currentmodel )
|
||||||
@@ -872,7 +871,6 @@ void R_DrawBrushModel( cl_entity_t *pent )
|
|||||||
vec3_t mins, maxs;
|
vec3_t mins, maxs;
|
||||||
float minmaxs[6];
|
float minmaxs[6];
|
||||||
mnode_t *topnode;
|
mnode_t *topnode;
|
||||||
int k;
|
|
||||||
edge_t ledges[NUMSTACKEDGES
|
edge_t ledges[NUMSTACKEDGES
|
||||||
+ (( CACHE_SIZE - 1 ) / sizeof( edge_t )) + 1];
|
+ (( CACHE_SIZE - 1 ) / sizeof( edge_t )) + 1];
|
||||||
surf_t lsurfs[NUMSTACKSURFACES
|
surf_t lsurfs[NUMSTACKSURFACES
|
||||||
|
|||||||
@@ -852,7 +852,7 @@ static surfcache_t *D_SCAlloc( int width, int size )
|
|||||||
if(( size <= 0 ) || ( size > 0x10000000 ))
|
if(( size <= 0 ) || ( size > 0x10000000 ))
|
||||||
gEngfuncs.Host_Error( "%s: bad cache size %d\n", __func__, size );
|
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;
|
size = ( size + 3 ) & ~3;
|
||||||
if( size > sc_size )
|
if( size > sc_size )
|
||||||
gEngfuncs.Host_Error( "%s: %i > cache size of %i", __func__, size, sc_size );
|
gEngfuncs.Host_Error( "%s: %i > cache size of %i", __func__, size, sc_size );
|
||||||
|
|||||||
Reference in New Issue
Block a user