diff options
Diffstat (limited to 'src/esp.cpp')
| -rw-r--r-- | src/esp.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/esp.cpp b/src/esp.cpp index 9b75c80..e62c9b0 100644 --- a/src/esp.cpp +++ b/src/esp.cpp | |||
| @@ -1703,7 +1703,10 @@ static void items_collect(int local_idx) { | |||
| 1703 | if (idx == active_idx || item_weapon_is_owned(ent)) | 1703 | if (idx == active_idx || item_weapon_is_owned(ent)) |
| 1704 | continue; | 1704 | continue; |
| 1705 | } | 1705 | } |
| 1706 | if (g_item_max_dist > 0 && dist > (float)g_item_max_dist) | 1706 | // Crates are rare and always worth knowing about; the distance slider |
| 1707 | // filters the common ammo/health clutter. | ||
| 1708 | if (kind != IK_CRATE && g_item_max_dist > 0 && | ||
| 1709 | dist > (float)g_item_max_dist) | ||
| 1707 | continue; | 1710 | continue; |
| 1708 | 1711 | ||
| 1709 | ItemTarget &t = g_item_targets[g_nitems++]; | 1712 | ItemTarget &t = g_item_targets[g_nitems++]; |
