From 0adadba2182e416f768c83804401e2c177307f0a Mon Sep 17 00:00:00 2001 From: Kahrl Date: Mon, 10 Nov 2014 22:06:24 +0100 Subject: Serverlist: announce mg_name from map_meta.txt instead of minetest.conf --- src/serverlist.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/serverlist.cpp') diff --git a/src/serverlist.cpp b/src/serverlist.cpp index 4d770a1c2..65c75fec2 100644 --- a/src/serverlist.cpp +++ b/src/serverlist.cpp @@ -194,6 +194,7 @@ void sendAnnounce(const std::string &action, const u32 game_time, const float lag, const std::string &gameid, + const std::string &mg_name, const std::vector &mods) { Json::Value server; @@ -227,7 +228,7 @@ void sendAnnounce(const std::string &action, if (action == "start") { server["dedicated"] = g_settings->getBool("server_dedicated"); server["rollback"] = g_settings->getBool("enable_rollback_recording"); - server["mapgen"] = g_settings->get("mg_name"); + server["mapgen"] = mg_name; server["privs"] = g_settings->get("default_privs"); server["can_see_far_names"] = g_settings->getS16("player_transfer_distance") <= 0; server["mods"] = Json::Value(Json::arrayValue); -- cgit v1.2.3