mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-12 16:18:01 +00:00
ref: gl: use direct host.features instead of PARM_FEATURES
This commit is contained in:
parent
707a9228e1
commit
82a2d272ad
@ -801,7 +801,7 @@ void R_AliasDynamicLight( cl_entity_t *ent, alight_t *plight )
|
|||||||
msurface_t *psurf = NULL;
|
msurface_t *psurf = NULL;
|
||||||
pmtrace_t trace;
|
pmtrace_t trace;
|
||||||
|
|
||||||
if( FBitSet( ENGINE_GET_PARM( PARM_FEATURES ), ENGINE_WRITE_LARGE_COORD ))
|
if( FBitSet( gp_host->features, ENGINE_WRITE_LARGE_COORD ))
|
||||||
{
|
{
|
||||||
vecEnd[0] = origin[0] - mv->skyvec_x * 65536.0f;
|
vecEnd[0] = origin[0] - mv->skyvec_x * 65536.0f;
|
||||||
vecEnd[1] = origin[1] - mv->skyvec_y * 65536.0f;
|
vecEnd[1] = origin[1] - mv->skyvec_y * 65536.0f;
|
||||||
@ -1381,7 +1381,7 @@ void R_DrawAliasModel( cl_entity_t *e )
|
|||||||
|
|
||||||
R_AliasLerpMovement( e );
|
R_AliasLerpMovement( e );
|
||||||
|
|
||||||
if( !FBitSet( ENGINE_GET_PARM( PARM_FEATURES ), ENGINE_COMPENSATE_QUAKE_BUG ))
|
if( !FBitSet( gp_host->features, ENGINE_COMPENSATE_QUAKE_BUG ))
|
||||||
e->angles[PITCH] = -e->angles[PITCH]; // stupid quake bug
|
e->angles[PITCH] = -e->angles[PITCH]; // stupid quake bug
|
||||||
|
|
||||||
// don't rotate clients, only aim
|
// don't rotate clients, only aim
|
||||||
|
@ -3818,8 +3818,7 @@ void GL_BuildLightmaps( void )
|
|||||||
memset( &RI, 0, sizeof( RI ));
|
memset( &RI, 0, sizeof( RI ));
|
||||||
|
|
||||||
// update the lightmap blocksize
|
// update the lightmap blocksize
|
||||||
if( FBitSet( ENGINE_GET_PARM( PARM_FEATURES ), ENGINE_LARGE_LIGHTMAPS )
|
if( FBitSet( gp_host->features, ENGINE_LARGE_LIGHTMAPS ) || tr.world->version == QBSP2_VERSION )
|
||||||
|| tr.world->version == QBSP2_VERSION )
|
|
||||||
tr.block_size = BLOCK_SIZE_MAX;
|
tr.block_size = BLOCK_SIZE_MAX;
|
||||||
else tr.block_size = BLOCK_SIZE_DEFAULT;
|
else tr.block_size = BLOCK_SIZE_DEFAULT;
|
||||||
|
|
||||||
|
@ -596,12 +596,12 @@ void R_StudioSetUpTransform( cl_entity_t *e )
|
|||||||
VectorCopy( e->angles, angles );
|
VectorCopy( e->angles, angles );
|
||||||
|
|
||||||
// interpolate monsters position (moved into UpdateEntityFields by user request)
|
// interpolate monsters position (moved into UpdateEntityFields by user request)
|
||||||
if( e->curstate.movetype == MOVETYPE_STEP && !FBitSet( ENGINE_GET_PARM( PARM_FEATURES ), ENGINE_COMPUTE_STUDIO_LERP ))
|
if( e->curstate.movetype == MOVETYPE_STEP && !FBitSet( gp_host->features, ENGINE_COMPUTE_STUDIO_LERP ))
|
||||||
{
|
{
|
||||||
R_StudioLerpMovement( e, g_studio.time, origin, angles );
|
R_StudioLerpMovement( e, g_studio.time, origin, angles );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !FBitSet( ENGINE_GET_PARM( PARM_FEATURES ), ENGINE_COMPENSATE_QUAKE_BUG ))
|
if( !FBitSet( gp_host->features, ENGINE_COMPENSATE_QUAKE_BUG ))
|
||||||
angles[PITCH] = -angles[PITCH]; // stupid quake bug
|
angles[PITCH] = -angles[PITCH]; // stupid quake bug
|
||||||
|
|
||||||
// don't rotate clients, only aim
|
// don't rotate clients, only aim
|
||||||
@ -1360,7 +1360,7 @@ void R_StudioDynamicLight( cl_entity_t *ent, alight_t *plight )
|
|||||||
msurface_t *psurf = NULL;
|
msurface_t *psurf = NULL;
|
||||||
pmtrace_t trace;
|
pmtrace_t trace;
|
||||||
|
|
||||||
if( FBitSet( ENGINE_GET_PARM( PARM_FEATURES ), ENGINE_WRITE_LARGE_COORD ))
|
if( FBitSet( gp_host->features, ENGINE_WRITE_LARGE_COORD ))
|
||||||
{
|
{
|
||||||
vecEnd[0] = origin[0] - mv->skyvec_x * 65536.0f;
|
vecEnd[0] = origin[0] - mv->skyvec_x * 65536.0f;
|
||||||
vecEnd[1] = origin[1] - mv->skyvec_y * 65536.0f;
|
vecEnd[1] = origin[1] - mv->skyvec_y * 65536.0f;
|
||||||
@ -3756,7 +3756,7 @@ static void R_StudioLoadTexture( model_t *mod, studiohdr_t *phdr, mstudiotexture
|
|||||||
gEngfuncs.Image_SetMDLPointer((byte *)phdr + ptexture->index);
|
gEngfuncs.Image_SetMDLPointer((byte *)phdr + ptexture->index);
|
||||||
size = sizeof( mstudiotexture_t ) + ptexture->width * ptexture->height + 768;
|
size = sizeof( mstudiotexture_t ) + ptexture->width * ptexture->height + 768;
|
||||||
|
|
||||||
if( FBitSet( ENGINE_GET_PARM( PARM_FEATURES ), ENGINE_IMPROVED_LINETRACE ) && FBitSet( ptexture->flags, STUDIO_NF_MASKED ))
|
if( FBitSet( gp_host->features, ENGINE_IMPROVED_LINETRACE ) && FBitSet( ptexture->flags, STUDIO_NF_MASKED ))
|
||||||
flags |= TF_KEEP_SOURCE; // Paranoia2 texture alpha-tracing
|
flags |= TF_KEEP_SOURCE; // Paranoia2 texture alpha-tracing
|
||||||
|
|
||||||
// build the texname
|
// build the texname
|
||||||
|
Loading…
Reference in New Issue
Block a user