Fix 908ee729: Inverted condition prevented actually writing data to files. (#12941)
[openttd-github.git] / src / saveload / compat / industry_sl_compat.h
blobb5d9b7f521276943837c571b06f9d6f9c5f91a84
1 /*
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/>.
6 */
8 /** @file industry_sl_compat.h Loading of industry chunks before table headers were added. */
10 #ifndef SAVELOAD_COMPAT_INDUSTRY_H
11 #define SAVELOAD_COMPAT_INDUSTRY_H
13 #include "../saveload.h"
15 const SaveLoadCompat _industry_accepts_sl_compat[] = {
16 SLC_VAR("cargo"),
17 SLC_VAR("waiting"),
18 SLC_VAR("last_accepted"),
21 const SaveLoadCompat _industry_produced_history_sl_compat[] = {
22 SLC_VAR("production"),
23 SLC_VAR("transported"),
26 const SaveLoadCompat _industry_produced_sl_compat[] = {
27 SLC_VAR("cargo"),
28 SLC_VAR("waiting"),
29 SLC_VAR("rate"),
32 /** Original field order for _industry_desc. */
33 const SaveLoadCompat _industry_sl_compat[] = {
34 SLC_VAR("location.tile"),
35 SLC_VAR("location.w"),
36 SLC_VAR("location.h"),
37 SLC_VAR("town"),
38 SLC_VAR("neutral_station"),
39 SLC_NULL(2, SL_MIN_VERSION, SLV_61),
40 SLC_VAR("produced_cargo"),
41 SLC_VAR("incoming_cargo_waiting"),
42 SLC_VAR("produced_cargo_waiting"),
43 SLC_VAR("production_rate"),
44 SLC_NULL(3, SL_MIN_VERSION, SLV_61),
45 SLC_VAR("accepts_cargo"),
46 SLC_VAR("prod_level"),
47 SLC_VAR("this_month_production"),
48 SLC_VAR("this_month_transported"),
49 SLC_NULL(2, SL_MIN_VERSION, SLV_EXTEND_INDUSTRY_CARGO_SLOTS),
50 SLC_NULL(16, SLV_EXTEND_INDUSTRY_CARGO_SLOTS, SLV_INDUSTRY_CARGO_REORGANISE),
51 SLC_VAR("last_month_production"),
52 SLC_VAR("last_month_transported"),
53 SLC_VAR("counter"),
54 SLC_VAR("type"),
55 SLC_VAR("owner"),
56 SLC_VAR("random_colour"),
57 SLC_VAR("last_prod_year"),
58 SLC_VAR("was_cargo_delivered"),
59 SLC_VAR("ctlflags"),
60 SLC_VAR("founder"),
61 SLC_VAR("construction_date"),
62 SLC_VAR("construction_type"),
63 SLC_VAR("last_cargo_accepted_at[0]"),
64 SLC_VAR("last_cargo_accepted_at"),
65 SLC_VAR("selected_layout"),
66 SLC_VAR("exclusive_supplier"),
67 SLC_VAR("exclusive_consumer"),
68 SLC_VAR("storage"),
69 SLC_VAR("psa"),
70 SLC_NULL(1, SLV_82, SLV_197),
71 SLC_VAR("random"),
72 SLC_VAR("text"),
73 SLC_NULL(32, SLV_2, SLV_144),
76 /** Original field order for _industry_builder_desc. */
77 const SaveLoadCompat _industry_builder_sl_compat[] = {
78 SLC_VAR("wanted_inds"),
81 /** Original field order for _industrytype_builder_desc. */
82 const SaveLoadCompat _industrytype_builder_sl_compat[] = {
83 SLC_VAR("probability"),
84 SLC_VAR("min_number"),
85 SLC_VAR("target_count"),
86 SLC_VAR("max_wait"),
87 SLC_VAR("wait_count"),
90 #endif /* SAVELOAD_COMPAT_INDUSTRY_H */