1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-18 01:42:38 +01:00

Fix 557fb0bd78, bd57aee3a9: Remove separate x-axis label for industry/town production graph. (#14497)

This is no longer necessary (and is wrong) as it's now part of the horizontal scale selector.
This commit is contained in:
Peter Nelson
2025-08-03 20:04:17 +01:00
committed by GitHub
parent 5ee186e850
commit 5b1c6772da

View File

@@ -1185,7 +1185,7 @@ struct BaseCargoGraphWindow : BaseGraphWindow {
BaseCargoGraphWindow(WindowDesc &desc, StringID format_str_y_axis) : BaseGraphWindow(desc, format_str_y_axis) {}
void InitializeWindow(WindowNumber number, StringID footer_wallclock = STR_EMPTY, StringID footer_calendar = STR_EMPTY)
void InitializeWindow(WindowNumber number, StringID footer_wallclock = STR_NULL, StringID footer_calendar = STR_NULL)
{
this->CreateNestedTree();
@@ -1704,7 +1704,7 @@ struct IndustryProductionGraphWindow : BaseCargoGraphWindow {
if (!i->IsCargoProduced()) this->masked_range = (1U << 0) | (1U << 1);
if (!i->IsCargoAccepted()) this->masked_range = (1U << 2) | (1U << 3);
this->InitializeWindow(window_number, STR_GRAPH_LAST_24_MINUTES_TIME_LABEL);
this->InitializeWindow(window_number);
}
void OnInit() override
@@ -1878,7 +1878,7 @@ struct TownCargoGraphWindow : BaseCargoGraphWindow {
this->draw_dates = !TimerGameEconomy::UsingWallclockUnits();
this->ranges = RANGE_LABELS;
this->InitializeWindow(window_number, STR_GRAPH_LAST_24_MINUTES_TIME_LABEL);
this->InitializeWindow(window_number);
}
void OnInit() override