summaryrefslogtreecommitdiff
path: root/table
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-08-16 11:39:55 +0000
committerrubidium <rubidium@openttd.org>2006-08-16 11:39:55 +0000
commit3cab5f30c06035034bcf5b513c2eee57b8ec11e9 (patch)
tree90102c4cf1f03e52dfe00d3cd1315b6cd9e6b399 /table
parent50e96f8ff92bad28741ca3d360a4e7366072748d (diff)
downloadopenttd-3cab5f30c06035034bcf5b513c2eee57b8ec11e9.tar.xz
(svn r5926) -Codechange: make _cur_year contain the full year, instead of the offset since 1920
-Codechange: store all year related variables that are _not_ stored in a savegame/transported over the network in the same format as _cur_year
Diffstat (limited to 'table')
-rw-r--r--table/town_land.h222
1 files changed, 111 insertions, 111 deletions
diff --git a/table/town_land.h b/table/town_land.h
index c9a940fb8..06658ecd3 100644
--- a/table/town_land.h
+++ b/table/town_land.h
@@ -2019,120 +2019,120 @@ assert_compile(lengthof(_housetype_remove_ratingmod) == HOUSE_MAX);
typedef struct {
- byte min,max;
+ Year min, max;
} HousetypeYear;
static const HousetypeYear _housetype_years[] = {
- {43, 255},
- {37, 255},
- {48, 255},
- {0, 255},
- {55, 255},
- {55, 255},
- {0, 255},
- {39, 255},
- {39, 255},
- {25, 255},
- {25, 255},
- {0, 255},
- {15, 255},
- {31, 255},
- {10, 40},
- {10, 40},
- {10, 40},
- {57, 255},
- {63, 255},
- {65, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 31},
- {0, 32},
- {11, 255},
- {15, 255},
- {43, 255},
- {0, 35},
- {53, 255},
- {0, 255},
- {38, 255},
- {38, 255},
- {38, 255},
- {38, 255},
- {80, 255},
- {0, 40},
- {0, 40},
- {25, 255},
- {63, 255},
- {63, 255},
- {63, 255},
- {63, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 43},
- {0, 43},
- {46, 255},
- {46, 255},
- {50, 255},
- {50, 255},
- {54, 255},
- {54, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 40},
- {0, 40},
- {52, 255},
- {52, 255},
- {52, 255},
- {52, 255},
- {43, 255},
- {43, 255},
- {58, 255},
- {58, 255},
- {47, 255},
- {47, 255},
- {47, 255},
- {47, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {53, 255},
- {42, 255},
- {64, 255},
- {64, 255},
- {0, 255},
- {73, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
- {0, 255},
+ { 1963, MAX_YEAR },
+ { 1957, MAX_YEAR },
+ { 1968, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 1975, MAX_YEAR },
+ { 1975, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 1959, MAX_YEAR },
+ { 1959, MAX_YEAR },
+ { 1945, MAX_YEAR },
+ { 1945, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 1935, MAX_YEAR },
+ { 1951, MAX_YEAR },
+ { 1930, 1960 },
+ { 1930, 1960 },
+ { 1930, 1960 },
+ { 1977, MAX_YEAR },
+ { 1983, MAX_YEAR },
+ { 1985, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, 1951 },
+ { 0, 1952 },
+ { 1941, MAX_YEAR },
+ { 1945, MAX_YEAR },
+ { 1963, MAX_YEAR },
+ { 0, 1955 },
+ { 1973, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 1958, MAX_YEAR },
+ { 1958, MAX_YEAR },
+ { 1958, MAX_YEAR },
+ { 1958, MAX_YEAR },
+ { 1950, MAX_YEAR },
+ { 0, 1960 },
+ { 0, 1960 },
+ { 1945, MAX_YEAR },
+ { 1983, MAX_YEAR },
+ { 1983, MAX_YEAR },
+ { 1983, MAX_YEAR },
+ { 1983, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, 1963 },
+ { 0, 1963 },
+ { 1966, MAX_YEAR },
+ { 1966, MAX_YEAR },
+ { 1970, MAX_YEAR },
+ { 1970, MAX_YEAR },
+ { 1974, MAX_YEAR },
+ { 1974, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, 1960 },
+ { 0, 1960 },
+ { 1972, MAX_YEAR },
+ { 1972, MAX_YEAR },
+ { 1972, MAX_YEAR },
+ { 1972, MAX_YEAR },
+ { 1963, MAX_YEAR },
+ { 1963, MAX_YEAR },
+ { 1978, MAX_YEAR },
+ { 1978, MAX_YEAR },
+ { 1967, MAX_YEAR },
+ { 1967, MAX_YEAR },
+ { 1967, MAX_YEAR },
+ { 1967, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 1973, MAX_YEAR },
+ { 1962, MAX_YEAR },
+ { 1984, MAX_YEAR },
+ { 1984, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 1993, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
+ { 0, MAX_YEAR },
};
assert_compile(lengthof(_housetype_years) == HOUSE_MAX);