diff options
author | rubidium <rubidium@openttd.org> | 2006-08-15 15:18:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-08-15 15:18:03 +0000 |
commit | 0d3ccad29fb035fced3a1a87b7804fde8c4e94b1 (patch) | |
tree | 40cc27f619e175b8c9a80e13e6651c33b92144aa /graph_gui.c | |
parent | 8aa76f306db00b81f14b53a736b6e30099258841 (diff) | |
download | openttd-0d3ccad29fb035fced3a1a87b7804fde8c4e94b1.tar.xz |
(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.
Diffstat (limited to 'graph_gui.c')
-rw-r--r-- | graph_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graph_gui.c b/graph_gui.c index 9382d7172..c14bcb2c9 100644 --- a/graph_gui.c +++ b/graph_gui.c @@ -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); |