Fix Dota 2 build.
This commit is contained in:
parent
3a94bd4fef
commit
f7a64167fc
@ -1564,9 +1564,11 @@ static cell_t GetEntPropEnt(IPluginContext *pContext, const cell_t *params)
|
|||||||
case FIELD_CLASSPTR:
|
case FIELD_CLASSPTR:
|
||||||
type = PropEnt_Entity;
|
type = PropEnt_Entity;
|
||||||
break;
|
break;
|
||||||
|
#if SOURCE_ENGINE != SE_DOTA
|
||||||
case FIELD_EDICT:
|
case FIELD_EDICT:
|
||||||
type = PropEnt_Edict;
|
type = PropEnt_Edict;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
return pContext->ThrowNativeError("Data field %s is not an entity nor edict (%d)",
|
return pContext->ThrowNativeError("Data field %s is not an entity nor edict (%d)",
|
||||||
prop,
|
prop,
|
||||||
@ -1657,11 +1659,13 @@ static cell_t SetEntPropEnt(IPluginContext *pContext, const cell_t *params)
|
|||||||
case FIELD_CLASSPTR:
|
case FIELD_CLASSPTR:
|
||||||
type = PropEnt_Entity;
|
type = PropEnt_Entity;
|
||||||
break;
|
break;
|
||||||
|
#if SOURCE_ENGINE != SE_DOTA
|
||||||
case FIELD_EDICT:
|
case FIELD_EDICT:
|
||||||
type = PropEnt_Edict;
|
type = PropEnt_Edict;
|
||||||
if (!pEdict)
|
if (!pEdict)
|
||||||
return pContext->ThrowNativeError("Edict %d is invalid", params[1]);
|
return pContext->ThrowNativeError("Edict %d is invalid", params[1]);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
return pContext->ThrowNativeError("Data field %s is not an entity nor edict (%d)",
|
return pContext->ThrowNativeError("Data field %s is not an entity nor edict (%d)",
|
||||||
prop,
|
prop,
|
||||||
|
Loading…
Reference in New Issue
Block a user