aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-04-12 17:42:17 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-04-12 17:42:17 +0300
commite20dbbf6eefa8b4eb80acebc54b36ef21a98fdc4 (patch)
treeb67e70b715febd3dbcfed882bf55556bdb7cddb7 /src
parent08139f32f99ad50fe6d5522feb21448a1a1aaae7 (diff)
downloadminetest-e20dbbf6eefa8b4eb80acebc54b36ef21a98fdc4.tar.gz
minetest-e20dbbf6eefa8b4eb80acebc54b36ef21a98fdc4.tar.bz2
minetest-e20dbbf6eefa8b4eb80acebc54b36ef21a98fdc4.zip
fixed port setting not being loaded from configuration file for client
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 28697146f..117670366 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