diff options
author | Sokomine <wegwerf@anarres.dyndns.org> | 2015-09-12 03:08:07 +0200 |
---|---|---|
committer | Sokomine <wegwerf@anarres.dyndns.org> | 2015-09-12 03:08:07 +0200 |
commit | 164479eaaf91a7e09ea268e687ecf0c7bd77ae6a (patch) | |
tree | a9cc598acc31c744b13910df7a9ae50ff2fcc58b | |
parent | 01234ecd2bca88554d68d9f9410b8c6cee30f536 (diff) |
auto-set the config value for the area range
-rw-r--r-- | config.lua | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -18,4 +18,14 @@ markers.MAX_SIZE = 1024; -- 32m * 32m = 1024 m^2 -- (else it does get too crowded on multiplayer servers) -- set to something >60000 in order to view all areas; set to a smaller -- value (i.e. 500) on multiplayer servers with many protected areas -markers.AREA_RANGE = 100000; + +if( #areas.areas > 1000 ) then + markers.AREA_RANGE = 100; +elseif( #areas.areas > 100 ) then + markers.AREA_RANGE = 1000; +else + markers.AREA_RANGE = 100000; +end + +-- for most cases, the default values ought to work +--markers.AREA_RANGE = 100000; |