From 2eda18951fde7ebd803aeb48595f203c0bb2f82a Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 28 Oct 2026 12:42:46 +0100 Subject: Item ESP: make 0 = unlimited explicit and persistent - config_load now accepts max_dist=0 instead of clamping it to 250, so the "unlimited" setting survives a restart. - The Max distance slider shows "All" at 0 and its tooltip documents 0 = unlimited; the categories log prints max=All. - Skip unclassified entities before projecting them / computing distance. - Keep the removed prop/crate debug logging and the user's rule that the distance slider applies to every tag. --- src/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/menu.cpp') diff --git a/src/menu.cpp b/src/menu.cpp index 6d7143d..2d4c660 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -280,7 +280,7 @@ static bool config_load() { g_item_distance = atoi(val) != 0; else if (strcmp(key, "max_dist") == 0) { int v = atoi(val); - if (v < 250) v = 250; + if (v < 0) v = 0; // 0 = unlimited if (v > 10000) v = 10000; g_item_max_dist = v; } -- cgit v1.2.3