From 14f2a952059644644bb47eef052e16c0c17aa646 Mon Sep 17 00:00:00 2001 From: Arkshine Date: Fri, 18 Jul 2014 16:49:39 +0200 Subject: [PATCH] Fix typo in set_ent_rendering native. --- dlls/engine/entity.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/engine/entity.cpp b/dlls/engine/entity.cpp index 030d51a8..a87a0e34 100755 --- a/dlls/engine/entity.cpp +++ b/dlls/engine/entity.cpp @@ -1518,7 +1518,7 @@ static cell AMX_NATIVE_CALL get_grenade_id(AMX *amx, cell *params) /* 4 param * return 0; } -static cell AMX_NATIVE_CALL set_ent_rendering(AMX *amx, cell *params) // set_user_rendering(index, fx = kRenderFxNone, r = 0, g = 0, b = 0, render = kRenderNormal, amount = 0); = 7 arguments +static cell AMX_NATIVE_CALL set_ent_rendering(AMX *amx, cell *params) // set_ent_rendering(index, fx = kRenderFxNone, r = 0, g = 0, b = 0, render = kRenderNormal, amount = 0); = 7 arguments { // params[1] = index // params[2] = fx @@ -1530,7 +1530,7 @@ static cell AMX_NATIVE_CALL set_ent_rendering(AMX *amx, cell *params) // set_use CHECK_ENTITY_SIMPLE(params[1]); - edict_t *pEntity = MF_GetPlayerEdict(params[1]); + edict_t *pEntity = INDEXENT2(params[1]); pEntity->v.renderfx = params[2]; pEntity->v.rendercolor = Vector(float(params[3]), float(params[4]), float(params[5]));