1.1 --- a/extensions/sdktools/outputnatives.cpp Fri Nov 14 03:38:59 2008 -0600
1.2 +++ b/extensions/sdktools/outputnatives.cpp Fri Nov 14 09:18:30 2008 -0600
1.3 @@ -40,7 +40,7 @@
1.4 return pContext->ThrowNativeError("Entity Outputs are disabled - See error logs for details");
1.5 }
1.6
1.7 - edict_t *pEdict = engine->PEntityOfEntIndex(params[1]);
1.8 + edict_t *pEdict = PEntityOfEntIndex(params[1]);
1.9 if (!pEdict)
1.10 {
1.11 return pContext->ThrowNativeError("Invalid Entity index %i", params[1]);
1.12 @@ -72,7 +72,7 @@
1.13 hook = g_OutputManager.NewHook();
1.14
1.15 hook->entity_filter = pEdict->m_NetworkSerialNumber;
1.16 - hook->entity_index = engine->IndexOfEdict(pEdict);
1.17 + hook->entity_index = IndexOfEdict(pEdict);
1.18 hook->only_once= !!params[4];
1.19 hook->pf = pFunction;
1.20 hook->m_parent = pOutputName;
1.21 @@ -220,7 +220,7 @@
1.22 }
1.23
1.24 // Find the classname of the entity and lookup the classname and output structures
1.25 - edict_t *pEdict = engine->PEntityOfEntIndex(params[1]);
1.26 + edict_t *pEdict = PEntityOfEntIndex(params[1]);
1.27 if (!pEdict)
1.28 {
1.29 return pContext->ThrowNativeError("Invalid Entity index %i", params[1]);
1.30 @@ -249,7 +249,7 @@
1.31 for (_iter=pOutputName->hooks.begin(); _iter!=pOutputName->hooks.end(); _iter++)
1.32 {
1.33 hook = (omg_hooks *)*_iter;
1.34 - if (hook->pf == pFunction && hook->entity_index == engine->IndexOfEdict(pEdict))
1.35 + if (hook->pf == pFunction && hook->entity_index == IndexOfEdict(pEdict))
1.36 {
1.37 // remove this hook.
1.38 if (hook->in_use)