mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-26 14:54:16 +00:00
ref: soft: remove usage of PARM_VIEWENT_INDEX and PARM_PLAYER_INDEX
This commit is contained in:
parent
05d5abe4db
commit
f1cdab91eb
@ -880,7 +880,7 @@ static qboolean R_BeamComputePoint( int beamEnt, vec3_t pt )
|
|||||||
// get attachment
|
// get attachment
|
||||||
if( attach > 0 )
|
if( attach > 0 )
|
||||||
VectorCopy( ent->attachment[attach - 1], pt );
|
VectorCopy( ent->attachment[attach - 1], pt );
|
||||||
else if( ent->index == ENGINE_GET_PARM( PARM_PLAYER_INDEX ) )
|
else if( ent->index == ( gp_cl->playernum + 1 ))
|
||||||
{
|
{
|
||||||
vec3_t simorg;
|
vec3_t simorg;
|
||||||
gEngfuncs.GetPredictedOrigin( simorg );
|
gEngfuncs.GetPredictedOrigin( simorg );
|
||||||
|
@ -78,10 +78,10 @@ extern poolhandle_t r_temppool;
|
|||||||
#define RP_NONVIEWERREF (RP_ENVVIEW)
|
#define RP_NONVIEWERREF (RP_ENVVIEW)
|
||||||
#define R_ModelOpaque( rm ) ( rm == kRenderNormal )
|
#define R_ModelOpaque( rm ) ( rm == kRenderNormal )
|
||||||
#define R_StaticEntity( ent ) ( VectorIsNull( ent->origin ) && VectorIsNull( ent->angles ))
|
#define R_StaticEntity( ent ) ( VectorIsNull( ent->origin ) && VectorIsNull( ent->angles ))
|
||||||
#define RP_LOCALCLIENT( e ) ((e) != NULL && (e)->index == gEngfuncs.GetPlayerIndex() && e->player )
|
#define RP_LOCALCLIENT( e ) ((e) != NULL && (e)->index == ( gp_cl->playernum + 1 ) && e->player )
|
||||||
#define RP_NORMALPASS() ( FBitSet( RI.params, RP_NONVIEWERREF ) == 0 )
|
#define RP_NORMALPASS() ( FBitSet( RI.params, RP_NONVIEWERREF ) == 0 )
|
||||||
|
|
||||||
#define CL_IsViewEntityLocalPlayer() ( ENGINE_GET_PARM( PARM_VIEWENT_INDEX ) == ENGINE_GET_PARM( PARM_PLAYER_INDEX ) )
|
#define CL_IsViewEntityLocalPlayer() ( gp_cl->viewentity == ( gp_cl->playernum + 1 ))
|
||||||
|
|
||||||
#define CULL_VISIBLE 0 // not culled
|
#define CULL_VISIBLE 0 // not culled
|
||||||
#define CULL_BACKSIDE 1 // backside of transparent wall
|
#define CULL_BACKSIDE 1 // backside of transparent wall
|
||||||
|
Loading…
x
Reference in New Issue
Block a user