Remove unnecessary check

Already checked in get_player()
This commit is contained in:
8dcc 2023-07-29 18:58:43 +02:00
parent e43eeb2d3b
commit 772f4a1d7a
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ static vec3_t get_closest_delta(vec3_t viewangles) {
for (int i = 1; i <= i_engine->GetMaxClients(); i++) { for (int i = 1; i <= i_engine->GetMaxClients(); i++) {
cl_entity_t* ent = get_player(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; continue;
/* TODO: Get bones origin */ /* TODO: Get bones origin */