Shortest distance priority mode got removed somehow (#1706)

* shortest distance prio mode got removed somehow

* Forgot break statement
This commit is contained in:
Stephen Martin 2022-07-17 15:28:37 -04:00 committed by GitHub
parent 0ad0c9f288
commit 2ace6a93f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -801,6 +801,11 @@ CachedEntity *RetrieveBestTarget(bool aimkey_state)
scr = 360.0f - calculated_data_array[ent->m_IDX].fov;
break;
}
case 2:
{
scr = 4096.0f - calculated_data_array[i].aim_position.DistTo(g_pLocalPlayer->v_Eye);
break;
}
case 3: // Health Priority (Lowest)
{
scr = 450.0f - ent->m_iHealth();