summaryrefslogtreecommitdiff
path: root/disaster_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-16 12:04:34 +0000
committertron <tron@openttd.org>2005-11-16 12:04:34 +0000
commitd76fc8d7d11e8a678a9d3ee2edc823b95abc736c (patch)
treeb5dcd418e8ac97351d7aece7ca4299c2b39579bc /disaster_cmd.c
parentce9cbb9c47beb6d17a8bf7743a8c25c1989b6ece (diff)
downloadopenttd-d76fc8d7d11e8a678a9d3ee2edc823b95abc736c.tar.xz
(svn r3197) Use a better bias so you can directly see the date range a disaster can happen in
Diffstat (limited to 'disaster_cmd.c')
-rw-r--r--disaster_cmd.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/disaster_cmd.c b/disaster_cmd.c
index ff4d6712a..12fc40b4f 100644
--- a/disaster_cmd.c
+++ b/disaster_cmd.c
@@ -941,21 +941,21 @@ static DisasterInitProc * const _disaster_initprocs[] = {
Disaster7_Init,
};
-typedef struct {
- byte min,max;
-} DisasterYears;
-
-#define MK(a,b) {a-20,b-20}
-static const DisasterYears _dis_years[8] = {
- MK(30,55),
- MK(40,70),
- MK(60,90),
- MK(70,100),
- MK(100,200),
- MK(40,65),
- MK(75,110),
- MK(50,85),
+#define MK(a, b) { (a) - MAX_YEAR_BEGIN_REAL, (b) - MAX_YEAR_BEGIN_REAL }
+static const struct {
+ byte min;
+ byte max;
+} _dis_years[] = {
+ MK(1930, 1955),
+ MK(1940, 1970),
+ MK(1960, 1990),
+ MK(1970, 2000),
+ MK(2000, 2100),
+ MK(1940, 1965),
+ MK(1975, 2010),
+ MK(1950, 1985)
};
+#undef MK
static void DoDisaster(void)