aboutsummaryrefslogtreecommitdiff
path: root/src/game.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/game.cpp
parent9b294ffa7a1f3cf7ee19111b7e5f4882f130dd21 (diff)
downloadhax-minetest-server-cdadbdbd17d624dd45cca67f41309cbe776dc348.tar.gz
hax-minetest-server-cdadbdbd17d624dd45cca67f41309cbe776dc348.zip
Server configuration is now written when "/#setting whatever = whatever" is issued.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 74b8e5029..6c0474ee7 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -715,7 +715,8 @@ void the_game(
std::string password,
std::string address,
u16 port,
- std::wstring &error_message
+ std::wstring &error_message,
+ std::string configpath
)
{
video::IVideoDriver* driver = device->getVideoDriver();
@@ -755,7 +756,7 @@ void the_game(
if(address == ""){
draw_load_screen(L"Creating server...", driver, font);
std::cout<<DTIME<<"Creating server"<<std::endl;
- server = new Server(map_dir);
+ server = new Server(map_dir, configpath);
server->start(port);
}