# HG changeset patch # User Jonathan G Rennison # Date 2024-01-12 21:53:31 # Node ID 782a8277fbf1ce69b97fed2e35703e422a83cbb2 # Parent 449edb5ac6926bc94063c7966986bacb2fc5733d Fix #11696: Graphics set parameters missing from survey data (#11764) diff --git a/src/survey.cpp b/src/survey.cpp --- a/src/survey.cpp +++ b/src/survey.cpp @@ -248,6 +248,12 @@ void SurveyConfiguration(nlohmann::json } if (BaseGraphics::GetUsedSet() != nullptr) { survey["graphics_set"] = fmt::format("{}.{}", BaseGraphics::GetUsedSet()->name, BaseGraphics::GetUsedSet()->version); + const GRFConfig *extra_cfg = BaseGraphics::GetUsedSet()->GetExtraConfig(); + if (extra_cfg != nullptr && extra_cfg->num_params > 0) { + survey["graphics_set_parameters"] = span(extra_cfg->param.data(), extra_cfg->num_params); + } else { + survey["graphics_set_parameters"] = span(); + } } if (BaseMusic::GetUsedSet() != nullptr) { survey["music_set"] = fmt::format("{}.{}", BaseMusic::GetUsedSet()->name, BaseMusic::GetUsedSet()->version);