projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1995b59
)
port to be not set to 0 from configuration
author
Perttu Ahola
<celeron55@gmail.com>
Sat, 23 Apr 2011 15:43:20 +0000
(18:43 +0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Sat, 23 Apr 2011 15:43:20 +0000
(18:43 +0300)
src/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index ffe877ebdfa4330e7a40d74406a1771606b6d9a9..dd8d5d7d48423ce28bc04967ff08beb748e47d01 100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-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