From 47384c5572eff65d61f37174f76713d75c1f162d Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sun, 21 Apr 2024 00:11:55 -0400 Subject: [PATCH] ICE contains arbitrary elements in ctype as well and should track this in saves --- src/client/GameSave.cpp | 1 + src/simulation/elements/ICEI.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/client/GameSave.cpp b/src/client/GameSave.cpp index 2784a17eb3..93aa0326a7 100644 --- a/src/client/GameSave.cpp +++ b/src/client/GameSave.cpp @@ -59,6 +59,7 @@ void GameSave::MapPalette() } if (version <= Version(98, 2)) { + ignoreMissingErrors[PT_ICEI] = true; ignoreMissingErrors[PT_SNOW] = true; ignoreMissingErrors[PT_RSST] = true; ignoreMissingErrors[PT_RSSS] = true; diff --git a/src/simulation/elements/ICEI.cpp b/src/simulation/elements/ICEI.cpp index a69572184f..a5b269d9b4 100644 --- a/src/simulation/elements/ICEI.cpp +++ b/src/simulation/elements/ICEI.cpp @@ -34,6 +34,7 @@ void Element::Element_ICEI() Description = "Crushes under pressure. Cools down air."; Properties = TYPE_SOLID|PROP_LIFE_DEC|PROP_NEUTPASS; + CarriesTypeIn = 1U << FIELD_CTYPE; LowPressure = IPL; LowPressureTransition = NT;