From 29b4ab04c319f6b88e724ff79d73ca49f5676eaa Mon Sep 17 00:00:00 2001 From: darkvater Date: Mon, 10 Jan 2005 14:43:00 +0000 Subject: (svn r1465) -Fix: [1099101] starting year patch goes out of range. Clamped year between 1920-2090 as wel as adding defines for it. --- ttd.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ttd.h') diff --git a/ttd.h b/ttd.h index d85bd9aae..4b6a0190a 100644 --- a/ttd.h +++ b/ttd.h @@ -42,6 +42,9 @@ typedef struct YearMonthDay { * * 1 day is thus about 2 seconds (74*27 = 1998) on a machine that can run OpenTTD normally */ #define DAY_TICKS 74 +#define MAX_YEAR_BEGIN_REAL 1920 +#define MAX_YEAR_END_REAL 2090 +#define MAX_YEAR_END 170 #include "macros.h" -- cgit v1.2.3-54-g00ecf