mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-31 10:29:10 +00:00
(svn r3716) - Move the option settings (_game_opt_desc) from misc.c into settings.c. This will be merged with SettingDesc misc_settings above as they are actually the same. No functionality has changed beside the fact that the settings are now in a different Chunkhandler.
This commit is contained in:
23
misc.c
23
misc.c
@@ -658,28 +658,6 @@ static void Load_NAME(void)
|
||||
}
|
||||
}
|
||||
|
||||
static const SaveLoad _game_opt_desc[] = {
|
||||
// added a new difficulty option (town attitude) in version 4
|
||||
SLE_CONDARR(GameOptions,diff, SLE_FILE_I16 | SLE_VAR_I32, 17, 0, 3),
|
||||
SLE_CONDARR(GameOptions,diff, SLE_FILE_I16 | SLE_VAR_I32, 18, 4, SL_MAX_VERSION),
|
||||
SLE_VAR(GameOptions,diff_level, SLE_UINT8),
|
||||
SLE_VAR(GameOptions,currency, SLE_UINT8),
|
||||
SLE_VAR(GameOptions,kilometers, SLE_UINT8),
|
||||
SLE_VAR(GameOptions,town_name, SLE_UINT8),
|
||||
SLE_VAR(GameOptions,landscape, SLE_UINT8),
|
||||
SLE_VAR(GameOptions,snow_line, SLE_UINT8),
|
||||
SLE_VAR(GameOptions,autosave, SLE_UINT8),
|
||||
SLE_VAR(GameOptions,road_side, SLE_UINT8),
|
||||
SLE_END()
|
||||
};
|
||||
|
||||
// Save load game options
|
||||
static void SaveLoad_OPTS(void)
|
||||
{
|
||||
SlObject(&_opt, _game_opt_desc);
|
||||
}
|
||||
|
||||
|
||||
static const SaveLoadGlobVarList _date_desc[] = {
|
||||
SLEG_VAR(_date, SLE_UINT16),
|
||||
SLEG_VAR(_date_fract, SLE_UINT16),
|
||||
@@ -1003,6 +981,5 @@ const ChunkHandler _misc_chunk_handlers[] = {
|
||||
{ 'NAME', Save_NAME, Load_NAME, CH_ARRAY},
|
||||
{ 'DATE', SaveLoad_DATE, SaveLoad_DATE, CH_RIFF},
|
||||
{ 'VIEW', SaveLoad_VIEW, SaveLoad_VIEW, CH_RIFF},
|
||||
{ 'OPTS', SaveLoad_OPTS, SaveLoad_OPTS, CH_RIFF},
|
||||
{ 'CHTS', Save_CHTS, Load_CHTS, CH_RIFF | CH_LAST}
|
||||
};
|
||||
|
Reference in New Issue
Block a user