|
|
|
@ -297,7 +297,6 @@ typedef struct
@@ -297,7 +297,6 @@ typedef struct
|
|
|
|
|
// get from engine
|
|
|
|
|
cl_entity_t *entities; |
|
|
|
|
movevars_t *movevars; |
|
|
|
|
model_t **models; |
|
|
|
|
color24 *palette; |
|
|
|
|
cl_entity_t *viewent; |
|
|
|
|
|
|
|
|
@ -676,6 +675,13 @@ void TriBrightness( float brightness );
@@ -676,6 +675,13 @@ void TriBrightness( float brightness );
|
|
|
|
|
#define ENGINE_GET_PARM_ (*gEngfuncs.EngineGetParm) |
|
|
|
|
#define ENGINE_GET_PARM( parm ) ENGINE_GET_PARM_( (parm), 0 ) |
|
|
|
|
|
|
|
|
|
extern ref_api_t gEngfuncs; |
|
|
|
|
extern ref_globals_t *gpGlobals; |
|
|
|
|
extern ref_client_t *gp_cl; |
|
|
|
|
extern ref_host_t *gp_host; |
|
|
|
|
|
|
|
|
|
DECLARE_ENGINE_SHARED_CVAR_LIST() |
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// helper funcs
|
|
|
|
|
//
|
|
|
|
@ -686,15 +692,10 @@ static inline cl_entity_t *CL_GetEntityByIndex( int index )
@@ -686,15 +692,10 @@ static inline cl_entity_t *CL_GetEntityByIndex( int index )
|
|
|
|
|
|
|
|
|
|
static inline model_t *CL_ModelHandle( int index ) |
|
|
|
|
{ |
|
|
|
|
return tr.models[index]; |
|
|
|
|
return gp_cl->models[index]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#define WORLDMODEL (tr.models[1]) |
|
|
|
|
|
|
|
|
|
extern ref_api_t gEngfuncs; |
|
|
|
|
extern ref_globals_t *gpGlobals; |
|
|
|
|
|
|
|
|
|
DECLARE_ENGINE_SHARED_CVAR_LIST() |
|
|
|
|
#define WORLDMODEL (gp_cl->models[1]) |
|
|
|
|
|
|
|
|
|
// todo: gl_cull.c
|
|
|
|
|
#define R_CullModel(...) 0 |
|
|
|
|