forked from mirror/OpenTTD
(svn r5916) -Cleanup: use MIN_YEAR/MAX_YEAR for the year boundaries and BASE_YEAR when comparing _cur_year with a 'full' year.
-Cleanup: replace some magic '1920' values with BASE_YEAR.
This commit is contained in:
@@ -151,7 +151,7 @@ static void DrawGraph(const GraphDrawer *gw)
|
||||
x = gw->left + 44;
|
||||
y = gw->top + gw->height + 1;
|
||||
j = gw->month;
|
||||
k = gw->year + MAX_YEAR_BEGIN_REAL;
|
||||
k = BASE_YEAR + gw->year;
|
||||
i = gw->num_on_x_axis;assert(i>0);
|
||||
do {
|
||||
SetDParam(2, k);
|
||||
|
Reference in New Issue
Block a user