1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-05 17:05:05 -05:00

port to be not set to 0 from configuration

This commit is contained in:
Perttu Ahola 2011-04-23 18:43:20 +03:00
parent 1995b59320
commit 179fc8597b

View File

@ -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";