1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-19 21:10:12 +02:00

Save compatibility with main branch

This commit is contained in:
Ivan Savenko 2022-12-25 18:07:08 +02:00
parent 5a7eed01da
commit 063b8732ff
4 changed files with 10 additions and 6 deletions

View File

@ -57,7 +57,7 @@
"targetType" : "NO_TARGET",
"sounds": {
"cast": "", // no casting sound, only obstacle placement sound
"cast": "" // no casting sound, only obstacle placement sound
},
"levels" : {
"base":{

View File

@ -61,10 +61,13 @@ public:
h & iconIndex;
h & identifier;
h & animation;
h & appearSound;
h & appearAnimation;
h & triggerSound;
h & triggerAnimation;
if (version > 805)
{
h & appearSound;
h & triggerAnimation;
h & triggerSound;
}
h & allowedTerrains;
h & allowedSpecialBfields;
h & isAbsoluteObstacle;

View File

@ -14,7 +14,7 @@
VCMI_LIB_NAMESPACE_BEGIN
const ui32 SERIALIZATION_VERSION = 805;
const ui32 SERIALIZATION_VERSION = 806;
const ui32 MINIMAL_SERIALIZATION_VERSION = 805;
const std::string SAVEGAME_MAGIC = "VCMISVG";

View File

@ -85,7 +85,8 @@ public:
template <typename Handler> void serialize(Handler & h, const int version)
{
h & resourceName;
h & effectName;
if (version > 805)
h & effectName;
h & verticalPosition;
h & pause;
}