|
|
@ -36,8 +36,11 @@ extern globalvars_t *gpGlobals; |
|
|
|
|
|
|
|
|
|
|
|
// Use this instead of ALLOC_STRING on constant strings
|
|
|
|
// Use this instead of ALLOC_STRING on constant strings
|
|
|
|
#define STRING(offset) (const char *)(gpGlobals->pStringBase + (int)offset) |
|
|
|
#define STRING(offset) (const char *)(gpGlobals->pStringBase + (int)offset) |
|
|
|
|
|
|
|
#if !defined __amd64__ || defined(CLIENT_DLL) |
|
|
|
#define MAKE_STRING(str) ((int)str - (int)STRING(0)) |
|
|
|
#define MAKE_STRING(str) ((int)str - (int)STRING(0)) |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
#define MAKE_STRING ALLOC_STRING |
|
|
|
|
|
|
|
#endif |
|
|
|
inline edict_t *FIND_ENTITY_BY_CLASSNAME(edict_t *entStart, const char *pszName) |
|
|
|
inline edict_t *FIND_ENTITY_BY_CLASSNAME(edict_t *entStart, const char *pszName) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return FIND_ENTITY_BY_STRING(entStart, "classname", pszName); |
|
|
|
return FIND_ENTITY_BY_STRING(entStart, "classname", pszName); |
|
|
|