From: Perttu Ahola Date: Tue, 12 Apr 2011 14:42:17 +0000 (+0300) Subject: fixed port setting not being loaded from configuration file for client X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=e20dbbf6eefa8b4eb80acebc54b36ef21a98fdc4;p=zefram%2Fminetest%2Fminetest_engine.git fixed port setting not being loaded from configuration file for client --- diff --git a/src/main.cpp b/src/main.cpp index 28697146..11767036 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1704,7 +1704,7 @@ int main(int argc, char *argv[]) u16 port = 30000; if(cmd_args.exists("port")) port = cmd_args.getU16("port"); - else if(cmd_args.exists("port")) + else if(g_settings.exists("port")) port = g_settings.getU16("port"); // Map directory