mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-19 00:17:56 +02:00
Remove save compatibility with 1.5.X
This commit is contained in:
@ -43,14 +43,6 @@ public:
|
||||
template <typename Handler> void serialize(Handler &h)
|
||||
{
|
||||
h & bID;
|
||||
if (h.version < Handler::Version::NEW_TOWN_BUILDINGS)
|
||||
{
|
||||
// compatibility code
|
||||
si32 indexOnTV = 0; //identifies its index on towns vector
|
||||
BuildingSubID::EBuildingSubID bType = BuildingSubID::NONE;
|
||||
h & indexOnTV;
|
||||
h & bType;
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
@ -90,8 +82,7 @@ public:
|
||||
template <typename Handler> void serialize(Handler &h)
|
||||
{
|
||||
h & static_cast<TownBuildingInstance&>(*this);
|
||||
if (h.version >= Handler::Version::NEW_TOWN_BUILDINGS)
|
||||
h & static_cast<Rewardable::Interface&>(*this);
|
||||
h & static_cast<Rewardable::Interface&>(*this);
|
||||
h & visitors;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user