1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

New terrain support - part 1 (#755)

Initial support of new terrains
This commit is contained in:
Nordsoft91
2022-06-20 17:39:50 +03:00
committed by Andrii Danylchenko
parent 205bb09880
commit aaa07e4d2e
103 changed files with 1066 additions and 1472 deletions

View File

@@ -110,11 +110,7 @@ struct DLL_LINKAGE PlayerInfo
h & posOfMainTown;
h & team;
h & generateHero;
if(version >= 770)
{
h & mainHeroInstance;
}
h & mainHeroInstance;
}
};
@@ -164,16 +160,9 @@ struct DLL_LINKAGE EventCondition
h & objectType;
h & position;
h & condition;
//(!!!) should be `version >= 759` here, but do not try to "fix" it
if(version > 759)
{
h & objectSubtype;
h & objectInstanceName;
}
if(version >= 770)
{
h & metaType;
}
h & objectSubtype;
h & objectInstanceName;
h & metaType;
}
};
@@ -495,9 +484,6 @@ public:
h & CGTownInstance::merchantArtifacts;
h & CGTownInstance::universitySkills;
if(formatVersion >= 759)
{
h & instanceNames;
}
h & instanceNames;
}
};