diff --git a/src/p_saveg.cpp b/src/p_saveg.cpp index 9406bff66..63b3fe9a6 100644 --- a/src/p_saveg.cpp +++ b/src/p_saveg.cpp @@ -964,7 +964,6 @@ void FLevelLocals::Serialize(FSerializer &arc, bool hubload) ("spotstate", SpotState) ("fragglethinker", FraggleScriptThinker) ("acsthinker", ACSThinker) - ("impactdecalcount", ImpactDecalCount) ("scrolls", Scrolls) ("automap", automap) ("interpolator", interpolator) @@ -1015,7 +1014,7 @@ void FLevelLocals::Serialize(FSerializer &arc, bool hubload) if (arc.isReading()) { for (auto &sec : sectors) - { + { P_Recalculate3DFloors(&sec); } for (int i = 0; i < MAXPLAYERS; ++i) @@ -1029,6 +1028,10 @@ void FLevelLocals::Serialize(FSerializer &arc, bool hubload) RecreateAllAttachedLights(); InitPortalGroups(this); + auto it = GetThinkerIterator(NAME_None, STAT_AUTODECAL); + ImpactDecalCount = 0; + while (it.Next()) ImpactDecalCount++; + automap->UpdateShowAllLines(); }