more work on optimizing cpu usage

reverted active grenades on TASK_* items
This commit is contained in:
Dmitry 2015-06-11 23:22:50 +03:00
commit 66c33472ff
8 changed files with 91 additions and 180 deletions

View file

@ -121,4 +121,9 @@ static inline int EntOffsetOfEntity(const edict_t *ent)
static inline bool IsEntityNull (const edict_t *ent)
{
return !ent || !EntOffsetOfEntity (ent);
}
}
static inline int GetTeam (edict_t *ent)
{
return g_clients[IndexOfEntity (ent) - 1].team;
}