From 98e921c2104302ae210fb6d1dad0eaaa8dc13091 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 19 Oct 2007 09:03:34 +0000 Subject: [PATCH] fixed GetClientEyeAngles() again --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401618 --- extensions/sdktools/vnatives.cpp | 2 +- plugins/include/sdktools_functions.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/sdktools/vnatives.cpp b/extensions/sdktools/vnatives.cpp index 381abbf4..4393e96f 100644 --- a/extensions/sdktools/vnatives.cpp +++ b/extensions/sdktools/vnatives.cpp @@ -605,7 +605,7 @@ static cell_t GetClientEyeAngles(IPluginContext *pContext, const cell_t *params) QAngle angles; bool got_angles = false; - if (pEntity == NULL) + if (pEntity != NULL) { got_angles = GetEyeAngles(pEntity, &angles); } diff --git a/plugins/include/sdktools_functions.inc b/plugins/include/sdktools_functions.inc index 4959ea73..e126611c 100644 --- a/plugins/include/sdktools_functions.inc +++ b/plugins/include/sdktools_functions.inc @@ -213,7 +213,7 @@ native bool:DispatchKeyValueVector(entity, const String:keyName[], const Float:v * @return Entity index being aimed at. * -1 if no entity is being aimed at. * -2 if the function is not supported. - * @error Invalid client index. + * @error Invalid client index or client not in game. */ native GetClientAimTarget(client, bool:only_clients=true);