Industry: Apply anim tile masking when loading prior version saves

This commit is contained in:
Jonathan G Rennison
2022-06-01 01:21:58 +01:00
parent 42e20d3d99
commit af270a63ad
5 changed files with 34 additions and 0 deletions

View File

@@ -4051,6 +4051,10 @@ bool AfterLoadGame()
}
}
if (SlXvIsFeatureMissing(XSLFI_INDUSTRY_ANIM_MASK)) {
ApplyIndustryTileAnimMasking();
}
InitializeRoadGUI();
/* This needs to be done after conversion. */

View File

@@ -172,6 +172,7 @@ const SlxiSubChunkInfo _sl_xv_sub_chunk_infos[] = {
{ XSLFI_MORE_STATION_TYPES, XSCF_NULL, 1, 1, "more_station_types", nullptr, nullptr, nullptr },
{ XSLFI_RV_ORDER_EXTRA_FLAGS, XSCF_IGNORABLE_UNKNOWN, 1, 1, "rv_order_extra_flags", nullptr, nullptr, nullptr },
{ XSLFI_GRF_ROADSTOPS, XSCF_NULL, 1, 1, "grf_road_stops", nullptr, nullptr, nullptr },
{ XSLFI_INDUSTRY_ANIM_MASK, XSCF_IGNORABLE_ALL, 1, 1, "industry_anim_mask", nullptr, nullptr, nullptr },
{ XSLFI_SCRIPT_INT64, XSCF_NULL, 1, 1, "script_int64", nullptr, nullptr, nullptr },
{ XSLFI_NULL, XSCF_NULL, 0, 0, nullptr, nullptr, nullptr, nullptr },// This is the end marker
};

View File

@@ -125,6 +125,7 @@ enum SlXvFeatureIndex {
XSLFI_MORE_STATION_TYPES, ///< More station types (field widening)
XSLFI_RV_ORDER_EXTRA_FLAGS, ///< Road vehicle order extra flags
XSLFI_GRF_ROADSTOPS, ///< NewGRF road stops
XSLFI_INDUSTRY_ANIM_MASK, ///< Industry tile animation masking
XSLFI_SCRIPT_INT64, ///< See: SLV_SCRIPT_INT64