diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-23 18:43:20 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-23 18:43:20 +0300 |
commit | 179fc8597bfddc232d1306bf3280bf5bc05e07c7 (patch) | |
tree | fd606fb97c636bcdccc9b673a4df7d555d22b75a | |
parent | 1995b59320fe0fdced55c4605635f38cc42768f1 (diff) | |
download | minetest-179fc8597bfddc232d1306bf3280bf5bc05e07c7.tar.gz minetest-179fc8597bfddc232d1306bf3280bf5bc05e07c7.tar.bz2 minetest-179fc8597bfddc232d1306bf3280bf5bc05e07c7.zip |
port to be not set to 0 from configuration
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index ffe877ebd..dd8d5d7d4 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";
|