mirror of https://github.com/OpenTTD/OpenTTD
Fix #13075: Reversed Industry Production Graph x-axis labels in wallclock timekeeping mode
parent
adb20f99ea
commit
c0916c0692
|
@ -197,7 +197,7 @@ protected:
|
||||||
/* These values are used if the graph is being plotted against values
|
/* These values are used if the graph is being plotted against values
|
||||||
* rather than the dates specified by month and year. */
|
* rather than the dates specified by month and year. */
|
||||||
uint16_t x_values_start = 0;
|
uint16_t x_values_start = 0;
|
||||||
uint16_t x_values_increment = 0;
|
int16_t x_values_increment = 0;
|
||||||
|
|
||||||
StringID format_str_y_axis{};
|
StringID format_str_y_axis{};
|
||||||
|
|
||||||
|
@ -1486,8 +1486,8 @@ struct IndustryProductionGraphWindow : BaseGraphWindow {
|
||||||
this->num_on_x_axis = GRAPH_NUM_MONTHS;
|
this->num_on_x_axis = GRAPH_NUM_MONTHS;
|
||||||
this->num_vert_lines = GRAPH_NUM_MONTHS;
|
this->num_vert_lines = GRAPH_NUM_MONTHS;
|
||||||
this->month_increment = 1;
|
this->month_increment = 1;
|
||||||
this->x_values_start = ECONOMY_MONTH_MINUTES;
|
this->x_values_start = GRAPH_NUM_MONTHS;
|
||||||
this->x_values_increment = ECONOMY_MONTH_MINUTES;
|
this->x_values_increment = -ECONOMY_MONTH_MINUTES;
|
||||||
this->draw_dates = !TimerGameEconomy::UsingWallclockUnits();
|
this->draw_dates = !TimerGameEconomy::UsingWallclockUnits();
|
||||||
this->ranges = RANGE_LABELS;
|
this->ranges = RANGE_LABELS;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue