From c40e993ce4a13321e57856fb40566fa93a5ef187 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sat, 8 Nov 2014 14:35:55 +0100 Subject: Replace setting unlimited_player_transfer_distance with player_transfer_distance --- src/serverlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/serverlist.cpp') 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::const_iterator it = mods.begin(); it != mods.end(); -- cgit v1.2.3