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

fixed port setting not being loaded from configuration file for client

This commit is contained in:
Perttu Ahola 2011-04-12 17:42:17 +03:00
parent 08139f32f9
commit e20dbbf6ee

View File

@ -1704,7 +1704,7 @@ int main(int argc, char *argv[])
u16 port = 30000; u16 port = 30000;
if(cmd_args.exists("port")) if(cmd_args.exists("port"))
port = cmd_args.getU16("port"); port = cmd_args.getU16("port");
else if(cmd_args.exists("port")) else if(g_settings.exists("port"))
port = g_settings.getU16("port"); port = g_settings.getU16("port");
// Map directory // Map directory