Fix broken pattern conversion.
This commit is contained in:
parent
67161bcfcb
commit
250fa436c0
|
@ -359,6 +359,8 @@ void VPatternConverter::ApplyPatches()
|
||||||
case (FormatVersion(0, 8, 6)):
|
case (FormatVersion(0, 8, 6)):
|
||||||
case (FormatVersion(0, 8, 7)):
|
case (FormatVersion(0, 8, 7)):
|
||||||
case (FormatVersion(0, 8, 8)):
|
case (FormatVersion(0, 8, 8)):
|
||||||
|
ToV0_8_8();
|
||||||
|
Q_FALLTHROUGH();
|
||||||
case (FormatVersion(0, 8, 9)):
|
case (FormatVersion(0, 8, 9)):
|
||||||
case (FormatVersion(0, 8, 10)):
|
case (FormatVersion(0, 8, 10)):
|
||||||
case (FormatVersion(0, 8, 11)):
|
case (FormatVersion(0, 8, 11)):
|
||||||
|
@ -519,6 +521,18 @@ void VPatternConverter::ToV0_6_2()
|
||||||
Save();
|
Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
void VPatternConverter::ToV0_8_8()
|
||||||
|
{
|
||||||
|
// TODO. Delete if minimal supported version is 0.8.8
|
||||||
|
Q_STATIC_ASSERT_X(VPatternConverter::PatternMinVer < FormatVersion(0, 8, 8),
|
||||||
|
"Time to refactor the code.");
|
||||||
|
SetVersion(QStringLiteral("0.8.8"));
|
||||||
|
RemoveGradationV0_8_8();
|
||||||
|
AddPieceUUIDV0_8_8();
|
||||||
|
Save();
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VPatternConverter::ToV0_9_0()
|
void VPatternConverter::ToV0_9_0()
|
||||||
{
|
{
|
||||||
|
|
|
@ -83,6 +83,7 @@ private:
|
||||||
void ToV0_4_4();
|
void ToV0_4_4();
|
||||||
void ToV0_6_0();
|
void ToV0_6_0();
|
||||||
void ToV0_6_2();
|
void ToV0_6_2();
|
||||||
|
void ToV0_8_8();
|
||||||
void ToV0_9_0();
|
void ToV0_9_0();
|
||||||
|
|
||||||
void TagUnitToV0_2_0();
|
void TagUnitToV0_2_0();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user