# HG changeset patch # User Patric Stout # Date 2023-08-30 10:14:32 # Node ID fe06ada895c13b3e174c26880ac62545b3f5c56e # Parent f46859f1ed4a8cdfde92e7f650cfa0026cf09d91 Change: for surveys capture more information about the OpenTTD version (#11244) diff --git a/src/network/network_survey.cpp b/src/network/network_survey.cpp --- a/src/network/network_survey.cpp +++ b/src/network/network_survey.cpp @@ -137,8 +137,12 @@ static void SurveySettings(nlohmann::jso */ static void SurveyOpenTTD(nlohmann::json &survey) { - survey["version"] = std::string(_openttd_revision); - survey["newgrf_version"] = _openttd_newgrf_version; + survey["version"]["revision"] = std::string(_openttd_revision); + survey["version"]["modified"] = _openttd_revision_modified; + survey["version"]["tagged"] = _openttd_revision_tagged; + survey["version"]["hash"] = std::string(_openttd_revision_hash); + survey["version"]["newgrf"] = fmt::format("{:X}", _openttd_newgrf_version); + survey["version"]["content"] = std::string(_openttd_content_version); survey["build_date"] = std::string(_openttd_build_date); survey["bits"] = #ifdef POINTER_IS_64BIT