2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 /** @file town_sl_compat.h Loading of town chunks before table headers were added. */
10 #ifndef SAVELOAD_COMPAT_TOWN_H
11 #define SAVELOAD_COMPAT_TOWN_H
13 #include "../saveload.h"
15 /** Original field order for SlTownSupplied. */
16 const SaveLoadCompat _town_supplied_sl_compat
[] = {
23 /** Original field order for SlTownReceived. */
24 const SaveLoadCompat _town_received_sl_compat
[] = {
31 /** Original field order for SlTownAcceptanceMatrix. */
32 const SaveLoadCompat _town_acceptance_matrix_sl_compat
[] = {
38 /** Original field order for town_desc. */
39 const SaveLoadCompat _town_sl_compat
[] = {
41 SLC_NULL(2, SL_MIN_VERSION
, SLV_3
),
42 SLC_NULL(4, SLV_3
, SLV_85
),
43 SLC_NULL(2, SL_MIN_VERSION
, SLV_92
),
44 SLC_VAR("townnamegrfid"),
45 SLC_VAR("townnametype"),
46 SLC_VAR("townnameparts"),
50 SLC_NULL(1, SL_MIN_VERSION
, SLV_2
),
51 SLC_VAR("have_ratings"),
54 SLC_VAR("supplied[CT_PASSENGERS].old_max"),
55 SLC_VAR("supplied[CT_MAIL].old_max"),
56 SLC_VAR("supplied[CT_PASSENGERS].new_max"),
57 SLC_VAR("supplied[CT_MAIL].new_max"),
58 SLC_VAR("supplied[CT_PASSENGERS].old_act"),
59 SLC_VAR("supplied[CT_MAIL].old_act"),
60 SLC_VAR("supplied[CT_PASSENGERS].new_act"),
61 SLC_VAR("supplied[CT_MAIL].new_act"),
62 SLC_NULL(2, SL_MIN_VERSION
, SLV_164
),
63 SLC_VAR("received[TE_FOOD].old_act"),
64 SLC_VAR("received[TE_WATER].old_act"),
65 SLC_VAR("received[TE_FOOD].new_act"),
66 SLC_VAR("received[TE_WATER].new_act"),
69 SLC_VAR("time_until_rebuild"),
70 SLC_VAR("grow_counter"),
71 SLC_VAR("growth_rate"),
72 SLC_VAR("fund_buildings_months"),
73 SLC_VAR("road_build_months"),
74 SLC_VAR("exclusivity"),
75 SLC_VAR("exclusive_counter"),
76 SLC_VAR("larger_town"),
79 SLC_NULL(4, SLV_166
, SLV_EXTEND_CARGOTYPES
),
80 SLC_NULL(8, SLV_EXTEND_CARGOTYPES
, SLV_REMOVE_TOWN_CARGO_CACHE
),
81 SLC_NULL(30, SLV_2
, SLV_REMOVE_TOWN_CARGO_CACHE
),
84 SLC_VAR("acceptance_matrix"),
87 #endif /* SAVELOAD_COMPAT_TOWN_H */