port to be not set to 0 from configuration
authorPerttu Ahola <celeron55@gmail.com>
Sat, 23 Apr 2011 15:43:20 +0000 (18:43 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 23 Apr 2011 15:43:20 +0000 (18:43 +0300)
src/main.cpp

index ffe877ebdfa4330e7a40d74406a1771606b6d9a9..dd8d5d7d48423ce28bc04967ff08beb748e47d01 100644 (file)
@@ -1076,6 +1076,8 @@ int main(int argc, char *argv[])
                port = cmd_args.getU16("port");\r
        else if(g_settings.exists("port"))\r
                port = g_settings.getU16("port");\r
+       if(port == 0)\r
+               port = 30000;\r
        \r
        // Map directory\r
        std::string map_dir = porting::path_userdata+"/map";\r