mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Remove save compatibility with 1.5.X
This commit is contained in:
lib
CArtifactInstance.hCPlayerState.hStartInfo.h
bonuses
campaign
gameState
mapObjects
mapping
networkPacks
rewardable
serializer
texts
server/processors
@ -287,25 +287,14 @@ public:
|
||||
h & mods;
|
||||
h & name;
|
||||
h & description;
|
||||
if (h.version >= Handler::Version::MAP_FORMAT_ADDITIONAL_INFOS)
|
||||
{
|
||||
h & author;
|
||||
h & authorContact;
|
||||
h & mapVersion;
|
||||
h & creationDateTime;
|
||||
}
|
||||
h & author;
|
||||
h & authorContact;
|
||||
h & mapVersion;
|
||||
h & creationDateTime;
|
||||
h & width;
|
||||
h & height;
|
||||
h & twoLevel;
|
||||
|
||||
if (h.version >= Handler::Version::SAVE_COMPATIBILITY_FIXES)
|
||||
h & difficulty;
|
||||
else
|
||||
{
|
||||
uint8_t difficultyInteger = static_cast<uint8_t>(difficulty);
|
||||
h & difficultyInteger;
|
||||
difficulty = static_cast<EMapDifficulty>(difficultyInteger);
|
||||
}
|
||||
h & difficulty;
|
||||
|
||||
h & levelLimit;
|
||||
h & areAnyPlayers;
|
||||
|
Reference in New Issue
Block a user