summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-07-30 19:49:42 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-07-30 19:49:42 +0300
commitcdadbdbd17d624dd45cca67f41309cbe776dc348 (patch)
tree332e7ee0975d25ce846d9d355dbb249255329220 /src/main.cpp
parent9b294ffa7a1f3cf7ee19111b7e5f4882f130dd21 (diff)
downloadminetest-cdadbdbd17d624dd45cca67f41309cbe776dc348.tar.gz
minetest-cdadbdbd17d624dd45cca67f41309cbe776dc348.tar.bz2
minetest-cdadbdbd17d624dd45cca67f41309cbe776dc348.zip
Server configuration is now written when "/#setting whatever = whatever" is issued.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9a9b22f87..3cc748954 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1302,7 +1302,7 @@ int main(int argc, char *argv[])
g_timegetter = new SimpleTimeGetter();
// Create server
- Server server(map_dir.c_str());
+ Server server(map_dir.c_str(), configpath);
server.start(port);
// Run server
@@ -1641,7 +1641,8 @@ int main(int argc, char *argv[])
password,
address,
port,
- error_message
+ error_message,
+ configpath
);
} //try