made worldspawn a valid ent

This commit is contained in:
David Anderson
2004-10-03 23:21:54 +00:00
parent 0a3911231b
commit bb12f71137
6 changed files with 12 additions and 12 deletions

View File

@ -106,7 +106,7 @@ bool isModuleActive();
bool util_strncmp( const char *sz1, const char *sz2, int size);
#define CHECK_ENTITY(x) \
if (x <= 0 || x > gpGlobals->maxEntities) { \
if (x < 0 || x > gpGlobals->maxEntities) { \
MF_LogError(amx, AMX_ERR_NATIVE, "Entity out of range (%d)", x); \
} else { \
if (x <= gpGlobals->maxClients) { \
@ -114,7 +114,7 @@ bool util_strncmp( const char *sz1, const char *sz2, int size);
MF_LogError(amx, AMX_ERR_NATIVE, "Invalid player %d (not in-game)", x); \
} \
} else { \
if (FNullEnt(INDEXENT(x))) { \
if (x != 0 && FNullEnt(INDEXENT(x))) { \
MF_LogError(amx, AMX_ERR_NATIVE, "Invalid entity %d", x); \
} \
} \