1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Server configuration is now written when "/#setting whatever = whatever" is issued.

This commit is contained in:
Perttu Ahola 2011-07-30 19:49:42 +03:00
parent 9b294ffa7a
commit cdadbdbd17
7 changed files with 36 additions and 14 deletions

View file

@ -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);
}