mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 14:58:06 +03:00
fixed get area function
This commit is contained in:
parent
567ab19fe5
commit
b609eead1b
@ -113,13 +113,12 @@ edict_t *FindEntityByString(edict_t *pentStart, const char *szKeyword, const cha
|
|||||||
|
|
||||||
#define GET_CAPTURE_AREA(x) \
|
#define GET_CAPTURE_AREA(x) \
|
||||||
if ( mObjects.obj[x].areaflags == 0 ){\
|
if ( mObjects.obj[x].areaflags == 0 ){\
|
||||||
if ( (mObjects.obj[x].pAreaEdict = FindEntityByString(0,"target",STRING(mObjects.obj[x].pEdict->v.targetname)))\
|
mObjects.obj[x].areaflags = 1;\
|
||||||
&& (strcmp( STRING(mObjects.obj[x].pAreaEdict->v.classname),"dod_capture_area" )==0) ){\
|
while ( mObjects.obj[x].pAreaEdict = FindEntityByString(mObjects.obj[x].pAreaEdict,"target",STRING(mObjects.obj[x].pEdict->v.targetname)) )\
|
||||||
mObjects.obj[x].areaflags = 2;\
|
if ( strcmp( STRING(mObjects.obj[x].pAreaEdict->v.classname),"dod_capture_area" )==0){\
|
||||||
}\
|
mObjects.obj[x].areaflags = 2;\
|
||||||
else{\
|
break;\
|
||||||
mObjects.obj[x].areaflags = 1;\
|
}\
|
||||||
}\
|
|
||||||
}\
|
}\
|
||||||
if ( mObjects.obj[x].areaflags == 1 )\
|
if ( mObjects.obj[x].areaflags == 1 )\
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user