mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
Remove save compatibility with 1.5.X
This commit is contained in:
@ -94,43 +94,13 @@ public:
|
||||
h & obligatorySpells;
|
||||
h & spells;
|
||||
h & events;
|
||||
|
||||
if (h.version >= Handler::Version::SPELL_RESEARCH)
|
||||
{
|
||||
h & spellResearchCounterDay;
|
||||
h & spellResearchAcceptedCounter;
|
||||
h & spellResearchAllowed;
|
||||
}
|
||||
|
||||
if (h.version >= Handler::Version::NEW_TOWN_BUILDINGS)
|
||||
{
|
||||
h & rewardableBuildings;
|
||||
}
|
||||
else
|
||||
{
|
||||
std::vector<TownRewardableBuildingInstance*> oldVector;
|
||||
h & oldVector;
|
||||
rewardableBuildings = convertOldBuildings(oldVector);
|
||||
}
|
||||
|
||||
if (h.version < Handler::Version::REMOVE_TOWN_PTR)
|
||||
{
|
||||
FactionID faction;
|
||||
bool isNull = false;
|
||||
h & isNull;
|
||||
if (!isNull)
|
||||
h & faction;
|
||||
}
|
||||
|
||||
h & spellResearchCounterDay;
|
||||
h & spellResearchAcceptedCounter;
|
||||
h & spellResearchAllowed;
|
||||
h & rewardableBuildings;
|
||||
h & townAndVis;
|
||||
BONUS_TREE_DESERIALIZATION_FIX
|
||||
|
||||
if (h.version < Handler::Version::NEW_TOWN_BUILDINGS)
|
||||
{
|
||||
std::set<BuildingID> overriddenBuildings;
|
||||
h & overriddenBuildings;
|
||||
}
|
||||
|
||||
if(!h.saving)
|
||||
postDeserialize();
|
||||
}
|
||||
|
Reference in New Issue
Block a user