From 997c9368930bc9f378990efcf7d576eeeb79d78d Mon Sep 17 00:00:00 2001 From: Tyler Trahan Date: Mon, 24 Apr 2023 14:38:16 -0400 Subject: [PATCH] Codechange: Don't use bytes for months in graph GUI --- src/graph_gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index da1f46c43b..95776837a9 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -185,7 +185,7 @@ protected: byte num_vert_lines; /* The starting month and year that values are plotted against. */ - byte month; + TimerGameCalendar::Month month; TimerGameCalendar::Year year; bool draw_dates = true; ///< Should we draw months and years on the time axis? @@ -385,7 +385,7 @@ protected: if (this->draw_dates) { x = r.left; y = r.bottom + ScaleGUITrad(2); - byte month = this->month; + TimerGameCalendar::Month month = this->month; TimerGameCalendar::Year year = this->year; for (int i = 0; i < this->num_on_x_axis; i++) { SetDParam(0, month + STR_MONTH_ABBREV_JAN); @@ -502,7 +502,7 @@ public: /* Draw x-axis labels and markings for graphs based on financial quarters and years. */ if (this->draw_dates) { - byte month = this->month; + TimerGameCalendar::Month month = this->month; TimerGameCalendar::Year year = this->year; for (int i = 0; i < this->num_on_x_axis; i++) { SetDParam(0, month + STR_MONTH_ABBREV_JAN);