mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-25 16:43:33 +00:00
Add suffix to the format version name
This commit is contained in:
parent
8f80895b59
commit
d5954aba68
@ -21,7 +21,7 @@ namespace ESM
|
|||||||
inline constexpr FormatVersion MaxOldCreatureStatsFormatVersion = 19;
|
inline constexpr FormatVersion MaxOldCreatureStatsFormatVersion = 19;
|
||||||
inline constexpr FormatVersion MaxLimitedSizeStringsFormatVersion = 22;
|
inline constexpr FormatVersion MaxLimitedSizeStringsFormatVersion = 22;
|
||||||
inline constexpr FormatVersion MaxStringRefIdFormatVersion = 23;
|
inline constexpr FormatVersion MaxStringRefIdFormatVersion = 23;
|
||||||
inline constexpr FormatVersion MaxSavedGameCellNameAsRefId = 24;
|
inline constexpr FormatVersion MaxSavedGameCellNameAsRefIdFormatVersion = 24;
|
||||||
inline constexpr FormatVersion CurrentSaveGameFormatVersion = 25;
|
inline constexpr FormatVersion CurrentSaveGameFormatVersion = 25;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ namespace ESM
|
|||||||
mPlayerClassId = esm.getHNORefId("PLCL");
|
mPlayerClassId = esm.getHNORefId("PLCL");
|
||||||
mPlayerClassName = esm.getHNOString("PLCN");
|
mPlayerClassName = esm.getHNOString("PLCN");
|
||||||
|
|
||||||
if (esm.getFormatVersion() <= ESM::MaxSavedGameCellNameAsRefId)
|
if (esm.getFormatVersion() <= ESM::MaxSavedGameCellNameAsRefIdFormatVersion)
|
||||||
mPlayerCellName = esm.getHNRefId("PLCE").toString();
|
mPlayerCellName = esm.getHNRefId("PLCE").toString();
|
||||||
else
|
else
|
||||||
mPlayerCellName = esm.getHNString("PLCE");
|
mPlayerCellName = esm.getHNString("PLCE");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user