Codechange: set VLI.index through accessor function
[openttd-github.git] / src / saveload / compat / misc_sl_compat.h
blob02d26002a592234b5edab80a5dc8f433ac47a6aa
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 misc_sl_compat.h Loading for misc chunks before table headers were added. */
10 #ifndef SAVELOAD_COMPAT_MISC_H
11 #define SAVELOAD_COMPAT_MISC_H
13 #include "../saveload.h"
15 /** Original field order for _date_desc. */
16 const SaveLoadCompat _date_sl_compat[] = {
17 SLC_VAR("date"),
18 SLC_VAR("date_fract"),
19 SLC_VAR("tick_counter"),
20 SLC_NULL(2, SL_MIN_VERSION, SLV_157),
21 SLC_VAR("age_cargo_skip_counter"),
22 SLC_NULL(1, SL_MIN_VERSION, SLV_46),
23 SLC_VAR("cur_tileloop_tile"),
24 SLC_VAR("next_disaster_start"),
25 SLC_NULL(2, SL_MIN_VERSION, SLV_120),
26 SLC_VAR("random_state[0]"),
27 SLC_VAR("random_state[1]"),
28 SLC_NULL(1, SL_MIN_VERSION, SLV_10),
29 SLC_NULL(4, SLV_10, SLV_120),
30 SLC_VAR("company_tick_counter"),
31 SLC_VAR("next_competitor_start"),
32 SLC_VAR("trees_tick_counter"),
33 SLC_VAR("pause_mode"),
34 SLC_NULL(4, SLV_11, SLV_120),
37 /** Original field order for _date_check_desc. */
38 const SaveLoadCompat _date_check_sl_compat[] = {
39 SLC_VAR("date"),
40 SLC_NULL(2, SL_MIN_VERSION, SL_MAX_VERSION), // date_fract
41 SLC_NULL(2, SL_MIN_VERSION, SL_MAX_VERSION), // tick_counter
42 SLC_NULL(2, SL_MIN_VERSION, SLV_157),
43 SLC_NULL(1, SL_MIN_VERSION, SLV_162), // age_cargo_skip_counter
44 SLC_NULL(1, SL_MIN_VERSION, SLV_46),
45 SLC_NULL(2, SL_MIN_VERSION, SLV_6), // cur_tileloop_tile
46 SLC_NULL(4, SLV_6, SL_MAX_VERSION), // cur_tileloop_tile
47 SLC_NULL(2, SL_MIN_VERSION, SL_MAX_VERSION), // disaster_delay
48 SLC_NULL(2, SL_MIN_VERSION, SLV_120),
49 SLC_NULL(4, SL_MIN_VERSION, SL_MAX_VERSION), // random.state[0]
50 SLC_NULL(4, SL_MIN_VERSION, SL_MAX_VERSION), // random.state[1]
51 SLC_NULL(1, SL_MIN_VERSION, SLV_10),
52 SLC_NULL(4, SLV_10, SLV_120),
53 SLC_NULL(1, SL_MIN_VERSION, SL_MAX_VERSION), // cur_company_tick_index
54 SLC_NULL(2, SL_MIN_VERSION, SLV_109), // next_competitor_start
55 SLC_NULL(4, SLV_109, SL_MAX_VERSION), // next_competitor_start
56 SLC_NULL(1, SL_MIN_VERSION, SL_MAX_VERSION), // trees_tick_ctr
57 SLC_NULL(1, SLV_4, SL_MAX_VERSION), // pause_mode
58 SLC_NULL(4, SLV_11, SLV_120),
61 /** Original field order for _view_desc. */
62 const SaveLoadCompat _view_sl_compat[] = {
63 SLC_VAR("x"),
64 SLC_VAR("y"),
65 SLC_VAR("zoom"),
68 #endif /* SAVELOAD_COMPAT_MISC_H */