OpenTTD Source 20241224-master-gf74b0cf984
misc_sl_compat.h
Go to the documentation of this file.
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 */
7
10#ifndef SAVELOAD_COMPAT_MISC_H
11#define SAVELOAD_COMPAT_MISC_H
12
13#include "../saveload.h"
14
17 SLC_VAR("date"),
18 SLC_VAR("date_fract"),
19 SLC_VAR("tick_counter"),
21 SLC_VAR("age_cargo_skip_counter"),
23 SLC_VAR("cur_tileloop_tile"),
24 SLC_VAR("next_disaster_start"),
26 SLC_VAR("random_state[0]"),
27 SLC_VAR("random_state[1]"),
30 SLC_VAR("company_tick_counter"),
31 SLC_VAR("next_competitor_start"),
32 SLC_VAR("trees_tick_counter"),
33 SLC_VAR("pause_mode"),
35};
36
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
43 SLC_NULL(1, SL_MIN_VERSION, SLV_162), // age_cargo_skip_counter
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
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]
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
59};
60
63 SLC_VAR("x"),
64 SLC_VAR("y"),
65 SLC_VAR("zoom"),
66};
67
68#endif /* SAVELOAD_COMPAT_MISC_H */
const SaveLoadCompat _date_check_sl_compat[]
Original field order for _date_check_desc.
const SaveLoadCompat _date_sl_compat[]
Original field order for _date_desc.
const SaveLoadCompat _view_sl_compat[]
Original field order for _view_desc.
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition saveload.h:1247
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition saveload.h:1255
@ SLV_4
4.0 1 4.1 122 0.3.3, 0.3.4 4.2 1222 0.3.5 4.3 1417 4.4 1426
Definition saveload.h:37
@ SLV_6
6.0 1721 6.1 1768
Definition saveload.h:46
@ SLV_11
11.0 2033 11.1 2041
Definition saveload.h:53
@ SLV_120
120 16439
Definition saveload.h:187
@ SLV_46
46 8705
Definition saveload.h:98
@ SL_MAX_VERSION
Highest possible saveload version.
Definition saveload.h:399
@ SL_MIN_VERSION
First savegame version.
Definition saveload.h:31
@ SLV_157
157 21862
Definition saveload.h:231
@ SLV_10
10.0 2030
Definition saveload.h:52
@ SLV_109
109 15075
Definition saveload.h:173
@ SLV_162
162 22713
Definition saveload.h:237
SaveLoad information for backwards compatibility.
Definition saveload.h:737