summaryrefslogtreecommitdiff
path: root/graph_gui.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2005-01-10 14:43:00 +0000
committerdarkvater <darkvater@openttd.org>2005-01-10 14:43:00 +0000
commit29b4ab04c319f6b88e724ff79d73ca49f5676eaa (patch)
treee114f254bcb59432fd9b8e483ca4ef7c4ef8ec89 /graph_gui.c
parentfae367ab31433c0987a2e042fb7cea40952d5ff0 (diff)
downloadopenttd-29b4ab04c319f6b88e724ff79d73ca49f5676eaa.tar.xz
(svn r1465) -Fix: [1099101] starting year patch goes out of range. Clamped year between 1920-2090 as wel as adding defines for it.
Diffstat (limited to 'graph_gui.c')
-rw-r--r--graph_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/graph_gui.c b/graph_gui.c
index 6a277f386..c8d0b63e4 100644
--- a/graph_gui.c
+++ b/graph_gui.c
@@ -142,7 +142,7 @@ static void DrawGraph(GraphDrawer *gw)
x = gw->left + 44;
y = gw->top + gw->height + 1;
j = gw->month;
- k = gw->year + 1920;
+ k = gw->year + MAX_YEAR_BEGIN_REAL;
i = gw->num_on_x_axis;assert(i>0);
do {
SetDParam(2, k);