mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 11:35:05 +08:00
engine: CL_IsPlayerIndex macro
This commit is contained in:
@@ -33,10 +33,12 @@ CL_IsPlayerIndex
|
||||
detect player entity
|
||||
==================
|
||||
*/
|
||||
#if XASH_EXT_OPT != 2
|
||||
qboolean CL_IsPlayerIndex( int idx )
|
||||
{
|
||||
return ( idx >= 1 && idx <= cl.maxclients );
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
=========================================================================
|
||||
|
||||
@@ -954,7 +954,11 @@ void CL_ProcessPlayerState( int playerindex, entity_state_t *state );
|
||||
void CL_ComputePlayerOrigin( cl_entity_t *clent );
|
||||
void CL_ProcessPacket( frame_t *frame );
|
||||
void CL_MoveThirdpersonCamera( void );
|
||||
#if XASH_EXT_OPT == 2
|
||||
#define CL_IsPlayerIndex( idx ) (( idx ) >= 1 && ( idx ) <= cl.maxclients )
|
||||
#else
|
||||
qboolean CL_IsPlayerIndex( int idx );
|
||||
#endif
|
||||
void CL_SetIdealPitch( void );
|
||||
void CL_EmitEntities( void );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user