aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-07-12 13:26:25 +0200
committerPilzAdam <pilzadam@minetest.net>2013-07-16 02:02:56 +0200
commitab145c8827504b2b3c897c46e9e7df32cf6324a4 (patch)
treea4b41edf238365ea63a82f3f392e05d11ab43cb6
parentecb024af641065f152ce71ac13cde8b357394d0f (diff)
downloadminetest-ab145c8827504b2b3c897c46e9e7df32cf6324a4.tar.gz
minetest-ab145c8827504b2b3c897c46e9e7df32cf6324a4.tar.bz2
minetest-ab145c8827504b2b3c897c46e9e7df32cf6324a4.zip
Randomly choose singleplayer port
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 580260ade..8ed164d1f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1654,7 +1654,7 @@ int main(int argc, char *argv[])
current_playername = "singleplayer";
current_password = "";
current_address = "";
- current_port = 30011;
+ current_port = myrand_range(49152, 65535);
}
else if (address != "")
{