town_cmd.c
changeset 3222 6de22e06a1e9
parent 3184 118a520164e4
child 3274 555f8f5006fb
equal deleted inserted replaced
3221:e0450d4ec188 3222:6de22e06a1e9
  1977 
  1977 
  1978 	SLE_VAR(Town,flags12,			SLE_UINT8),
  1978 	SLE_VAR(Town,flags12,			SLE_UINT8),
  1979 	SLE_VAR(Town,statues,			SLE_UINT8),
  1979 	SLE_VAR(Town,statues,			SLE_UINT8),
  1980 
  1980 
  1981 	// sort_index_obsolete was stored here in savegame format 0 - 1
  1981 	// sort_index_obsolete was stored here in savegame format 0 - 1
  1982 	SLE_CONDARR(NullStruct,null,SLE_FILE_U8 | SLE_VAR_NULL, 1, 0, 1),
  1982 	SLE_CONDNULL(1, 0, 1),
  1983 
  1983 
  1984 	SLE_VAR(Town,have_ratings,SLE_UINT8),
  1984 	SLE_VAR(Town,have_ratings,SLE_UINT8),
  1985 	SLE_ARR(Town,ratings,			SLE_INT16, 8),
  1985 	SLE_ARR(Town,ratings,			SLE_INT16, 8),
  1986 	// failed bribe attempts are stored since savegame format 4
  1986 	// failed bribe attempts are stored since savegame format 4
  1987 	SLE_CONDARR(Town,unwanted,			SLE_INT8, 8, 4,SL_MAX_VERSION),
  1987 	SLE_CONDARR(Town,unwanted,			SLE_INT8, 8, 4,SL_MAX_VERSION),
  2019 	SLE_VAR(Town,road_build_months,			SLE_UINT8),
  2019 	SLE_VAR(Town,road_build_months,			SLE_UINT8),
  2020 
  2020 
  2021 	SLE_VAR(Town,exclusivity,						SLE_UINT8),
  2021 	SLE_VAR(Town,exclusivity,						SLE_UINT8),
  2022 	SLE_VAR(Town,exclusive_counter,			SLE_UINT8),
  2022 	SLE_VAR(Town,exclusive_counter,			SLE_UINT8),
  2023 	// reserve extra space in savegame here. (currently 30 bytes)
  2023 	// reserve extra space in savegame here. (currently 30 bytes)
  2024 	SLE_CONDARR(NullStruct,null,SLE_FILE_U8 | SLE_VAR_NULL, 30, 2, SL_MAX_VERSION),
  2024 	SLE_CONDNULL(30, 2, SL_MAX_VERSION),
  2025 
  2025 
  2026 	SLE_END()
  2026 	SLE_END()
  2027 };
  2027 };
  2028 
  2028 
  2029 static void Save_TOWN(void)
  2029 static void Save_TOWN(void)