summaryrefslogtreecommitdiffstats
path: root/src/menu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/menu.cpp')
-rw-r--r--src/menu.cpp2
1 files changed, 1 insertions, 1 deletions
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() {
280 g_item_distance = atoi(val) != 0; 280 g_item_distance = atoi(val) != 0;
281 else if (strcmp(key, "max_dist") == 0) { 281 else if (strcmp(key, "max_dist") == 0) {
282 int v = atoi(val); 282 int v = atoi(val);
283 if (v < 250) v = 250; 283 if (v < 0) v = 0; // 0 = unlimited
284 if (v > 10000) v = 10000; 284 if (v > 10000) v = 10000;
285 g_item_max_dist = v; 285 g_item_max_dist = v;
286 } 286 }