mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-30 23:54:35 +01:00
Codechange: Use EncodedStrings for News messages. (#13654)
This commit is contained in:
@@ -59,8 +59,8 @@ static void SurveyRecentNews(nlohmann::json &json)
|
||||
int i = 0;
|
||||
for (const auto &news : GetNews()) {
|
||||
TimerGameCalendar::YearMonthDay ymd = TimerGameCalendar::ConvertDateToYMD(news.date);
|
||||
json.push_back(fmt::format("({}-{:02}-{:02}) StringID: {}, Type: {}, Ref1: {}, {}, Ref2: {}, {}",
|
||||
ymd.year, ymd.month + 1, ymd.day, news.string_id, news.type,
|
||||
json.push_back(fmt::format("({}-{:02}-{:02}) String: {}, Type: {}, Ref1: {}, {}, Ref2: {}, {}",
|
||||
ymd.year, ymd.month + 1, ymd.day, news.GetStatusText(), news.type,
|
||||
news.ref1.index(), SerialiseNewsReference(news.ref1),
|
||||
news.ref2.index(), SerialiseNewsReference(news.ref2)));
|
||||
if (++i > 32) break;
|
||||
|
||||
Reference in New Issue
Block a user