some optimizations
This commit is contained in:
parent
873e389271
commit
1fa0acf472
17 changed files with 146 additions and 130 deletions
|
|
@ -230,7 +230,7 @@ typedef struct enginefuncs_s
|
|||
void (*pfnSetPhysicsKeyValue) (const edict_t *client, const char *key, const char *value);
|
||||
const char *(*pfnGetPhysicsInfoString) (const edict_t *client);
|
||||
unsigned short (*pfnPrecacheEvent) (int type, const char *psz);
|
||||
void (*pfnPlaybackEvent) (int flags, const edict_t *pInvoker, unsigned short eventindex, float delay, float *origin, float *angles, float fparam1, float fparam2, int iparam1, int iparam2, int bparam1, int bparam2);
|
||||
void (*pfnPlaybackEvent) (int flags, const edict_t *pInvoker, unsigned short evIndexOfEntity, float delay, float *origin, float *angles, float fparam1, float fparam2, int iparam1, int iparam2, int bparam1, int bparam2);
|
||||
unsigned char *(*pfnSetFatPVS) (float *org);
|
||||
unsigned char *(*pfnSetFatPAS) (float *org);
|
||||
int (*pfnCheckVisibility) (const edict_t *entity, unsigned char *pset);
|
||||
|
|
|
|||
|
|
@ -129,14 +129,7 @@ static inline entvars_t *VARS (EOFFSET eoffset)
|
|||
{
|
||||
return VARS (ENT (eoffset));
|
||||
}
|
||||
static inline int ENTINDEX (edict_t *ent)
|
||||
{
|
||||
return (*g_engfuncs.pfnIndexOfEdict) (ent);
|
||||
}
|
||||
static inline edict_t *INDEXENT (int iEdictNum)
|
||||
{
|
||||
return (*g_engfuncs.pfnPEntityOfEntIndex) (iEdictNum);
|
||||
}
|
||||
|
||||
static inline void MESSAGE_BEGIN (int msg_dest, int msg_type, const float *pOrigin, entvars_t *ent)
|
||||
{
|
||||
(*g_engfuncs.pfnMessageBegin) (msg_dest, msg_type, pOrigin, ENT (ent));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue