mirror of https://github.com/OpenTTD/OpenTTD
(svn r3197) Use a better bias so you can directly see the date range a disaster can happen in
parent
ce9cbb9c47
commit
d76fc8d7d1
|
@ -941,21 +941,21 @@ static DisasterInitProc * const _disaster_initprocs[] = {
|
||||||
Disaster7_Init,
|
Disaster7_Init,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
#define MK(a, b) { (a) - MAX_YEAR_BEGIN_REAL, (b) - MAX_YEAR_BEGIN_REAL }
|
||||||
byte min,max;
|
static const struct {
|
||||||
} DisasterYears;
|
byte min;
|
||||||
|
byte max;
|
||||||
#define MK(a,b) {a-20,b-20}
|
} _dis_years[] = {
|
||||||
static const DisasterYears _dis_years[8] = {
|
MK(1930, 1955),
|
||||||
MK(30,55),
|
MK(1940, 1970),
|
||||||
MK(40,70),
|
MK(1960, 1990),
|
||||||
MK(60,90),
|
MK(1970, 2000),
|
||||||
MK(70,100),
|
MK(2000, 2100),
|
||||||
MK(100,200),
|
MK(1940, 1965),
|
||||||
MK(40,65),
|
MK(1975, 2010),
|
||||||
MK(75,110),
|
MK(1950, 1985)
|
||||||
MK(50,85),
|
|
||||||
};
|
};
|
||||||
|
#undef MK
|
||||||
|
|
||||||
|
|
||||||
static void DoDisaster(void)
|
static void DoDisaster(void)
|
||||||
|
|
Loading…
Reference in New Issue