From: Perttu Ahola Date: Sat, 23 Apr 2011 15:43:20 +0000 (+0300) Subject: port to be not set to 0 from configuration X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=179fc8597bfddc232d1306bf3280bf5bc05e07c7;p=zefram%2Fminetest%2Fminetest_engine.git port to be not set to 0 from configuration --- diff --git a/src/main.cpp b/src/main.cpp index ffe877eb..dd8d5d7d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1076,6 +1076,8 @@ int main(int argc, char *argv[]) port = cmd_args.getU16("port"); else if(g_settings.exists("port")) port = g_settings.getU16("port"); + if(port == 0) + port = 30000; // Map directory std::string map_dir = porting::path_userdata+"/map";