1.1 --- a/extensions/sdktools/vdecoder.cpp Fri Nov 14 03:38:59 2008 -0600
1.2 +++ b/extensions/sdktools/vdecoder.cpp Fri Nov 14 09:18:30 2008 -0600
1.3 @@ -223,7 +223,7 @@
1.4 if (pEntity)
1.5 {
1.6 edict_t *pEdict = gameents->BaseEntityToEdict(pEntity);
1.7 - *addr = engine->IndexOfEdict(pEdict);
1.8 + *addr = IndexOfEdict(pEdict);
1.9 } else {
1.10 *addr = -1;
1.11 }
1.12 @@ -238,7 +238,7 @@
1.13 edict_t *pEdict = *(edict_t **)buffer;
1.14 if (pEdict)
1.15 {
1.16 - *addr = engine->IndexOfEdict(pEdict);
1.17 + *addr = IndexOfEdict(pEdict);
1.18 } else {
1.19 *addr = -1;
1.20 }
1.21 @@ -415,7 +415,7 @@
1.22 } else if (param == 0) {
1.23 if (data->decflags & VDECODE_FLAG_ALLOWWORLD)
1.24 {
1.25 - pEdict = engine->PEntityOfEntIndex(0);
1.26 + pEdict = PEntityOfEntIndex(0);
1.27 } else {
1.28 pContext->ThrowNativeError("World not allowed");
1.29 return Data_Fail;
1.30 @@ -479,13 +479,13 @@
1.31 } else if (param == 0) {
1.32 if (data->decflags & VDECODE_FLAG_ALLOWWORLD)
1.33 {
1.34 - pEdict = engine->PEntityOfEntIndex(0);
1.35 + pEdict = PEntityOfEntIndex(0);
1.36 } else {
1.37 pContext->ThrowNativeError("World not allowed");
1.38 return Data_Fail;
1.39 }
1.40 } else {
1.41 - pEdict = engine->PEntityOfEntIndex(param);
1.42 + pEdict = PEntityOfEntIndex(param);
1.43 if (!pEdict || pEdict->IsFree())
1.44 {
1.45 pContext->ThrowNativeError("Entity %d is not valid or is freed", param);
1.46 @@ -547,13 +547,13 @@
1.47 } else if (param == 0) {
1.48 if (data->decflags & VDECODE_FLAG_ALLOWWORLD)
1.49 {
1.50 - pEdict = engine->PEntityOfEntIndex(0);
1.51 + pEdict = PEntityOfEntIndex(0);
1.52 } else {
1.53 pContext->ThrowNativeError("World not allowed");
1.54 return Data_Fail;
1.55 }
1.56 } else {
1.57 - pEdict = engine->PEntityOfEntIndex(param);
1.58 + pEdict = PEntityOfEntIndex(param);
1.59 if (!pEdict || pEdict->IsFree())
1.60 {
1.61 pContext->ThrowNativeError("Entity %d is not valid or is freed", param);