mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-28 17:09:10 +00:00
(svn r1465) -Fix: [1099101] starting year patch goes out of range. Clamped year between 1920-2090 as wel as adding defines for it.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user