mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
made worldspawn a valid ent
This commit is contained in:
parent
846ef95c58
commit
0a3911231b
@ -62,7 +62,7 @@ edict_t* g_edict;
|
|||||||
// Globals above
|
// Globals above
|
||||||
|
|
||||||
#define CHECK_ENTITY(x) \
|
#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); \
|
MF_LogError(amx, AMX_ERR_NATIVE, "Entity out of range (%d)", x); \
|
||||||
} else { \
|
} else { \
|
||||||
if (x <= gpGlobals->maxClients) { \
|
if (x <= gpGlobals->maxClients) { \
|
||||||
@ -70,7 +70,7 @@ edict_t* g_edict;
|
|||||||
MF_LogError(amx, AMX_ERR_NATIVE, "Invalid player %d (not in-game)", x); \
|
MF_LogError(amx, AMX_ERR_NATIVE, "Invalid player %d (not in-game)", x); \
|
||||||
} \
|
} \
|
||||||
} else { \
|
} else { \
|
||||||
if (FNullEnt(INDEXENT(x))) { \
|
if (x != 0 && FNullEnt(INDEXENT(x))) { \
|
||||||
MF_LogError(amx, AMX_ERR_NATIVE, "Invalid entity %d", x); \
|
MF_LogError(amx, AMX_ERR_NATIVE, "Invalid entity %d", x); \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
|
Loading…
Reference in New Issue
Block a user