summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSokomine <wegwerf@anarres.dyndns.org>2015-09-12 03:19:10 +0200
committerSokomine <wegwerf@anarres.dyndns.org>2015-09-12 03:19:10 +0200
commit52d1b90b8906b28d4b5ba93cd271b3865b316d00 (patch)
tree052d617454ba94b19e7f44f247f55959f26eb574
parent164479eaaf91a7e09ea268e687ecf0c7bd77ae6a (diff)
added option to read parameters from a local settings file
-rw-r--r--config.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.lua b/config.lua
index d496f18..f29e46e 100644
--- a/config.lua
+++ b/config.lua
@@ -29,3 +29,8 @@ end
-- for most cases, the default values ought to work
--markers.AREA_RANGE = 100000;
+
+if( io.open(minetest.get_worldpath().."/markers_settings.txt","r")) then
+ io.close()
+ dofile(minetest.get_worldpath().."/markers_settings.txt")
+end