From 772f4a1d7aa9e3f2d59add097e9eb7b4548a7db6 Mon Sep 17 00:00:00 2001 From: 8dcc <8dcc.git@gmail.com> Date: Sat, 29 Jul 2023 18:58:43 +0200 Subject: [PATCH] Remove unnecessary check Already checked in get_player() --- src/features/aim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/aim.c b/src/features/aim.c index 7e15f62..a371cbf 100644 --- a/src/features/aim.c +++ b/src/features/aim.c @@ -26,7 +26,7 @@ static vec3_t get_closest_delta(vec3_t viewangles) { for (int i = 1; i <= i_engine->GetMaxClients(); i++) { cl_entity_t* ent = get_player(i); - if (!valid_player(ent) || !is_alive(ent) || is_friend(ent)) + if (!is_alive(ent) || is_friend(ent)) continue; /* TODO: Get bones origin */