diff options
author | PilzAdam <pilzadam@minetest.net> | 2013-07-12 13:26:25 +0200 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-07-16 02:02:56 +0200 |
commit | ab145c8827504b2b3c897c46e9e7df32cf6324a4 (patch) | |
tree | a4b41edf238365ea63a82f3f392e05d11ab43cb6 /src | |
parent | ecb024af641065f152ce71ac13cde8b357394d0f (diff) | |
download | minetest-ab145c8827504b2b3c897c46e9e7df32cf6324a4.tar.gz minetest-ab145c8827504b2b3c897c46e9e7df32cf6324a4.tar.bz2 minetest-ab145c8827504b2b3c897c46e9e7df32cf6324a4.zip |
Randomly choose singleplayer port
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 |
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 != "") { |