summaryrefslogtreecommitdiff
path: root/src/serverlist.cpp
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2014-11-08 14:35:55 +0100
committerKahrl <kahrl@gmx.net>2014-11-08 14:56:09 +0100
commitc40e993ce4a13321e57856fb40566fa93a5ef187 (patch)
tree27049ec2f527c06907ff1631d74843cb7e7164fa /src/serverlist.cpp
parent96fcca4ea0a9ac0cec1ef48d5baeed78120f62e9 (diff)
downloadminetest-c40e993ce4a13321e57856fb40566fa93a5ef187.tar.gz
minetest-c40e993ce4a13321e57856fb40566fa93a5ef187.tar.bz2
minetest-c40e993ce4a13321e57856fb40566fa93a5ef187.zip
Replace setting unlimited_player_transfer_distance with player_transfer_distance
Diffstat (limited to 'src/serverlist.cpp')
-rw-r--r--src/serverlist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serverlist.cpp b/src/serverlist.cpp
index 245a8b800..4d770a1c2 100644
--- a/src/serverlist.cpp
+++ b/src/serverlist.cpp
@@ -229,7 +229,7 @@ void sendAnnounce(const std::string &action,
server["rollback"] = g_settings->getBool("enable_rollback_recording");
server["mapgen"] = g_settings->get("mg_name");
server["privs"] = g_settings->get("default_privs");
- server["can_see_far_names"] = g_settings->getBool("unlimited_player_transfer_distance");
+ server["can_see_far_names"] = g_settings->getS16("player_transfer_distance") <= 0;
server["mods"] = Json::Value(Json::arrayValue);
for (std::vector<ModSpec>::const_iterator it = mods.begin();
it != mods.end();