For consistency with TES CS, force DELE record writes to be 4 bytes (currently writes 1 byte).

dont-compose-content
cc9cii 4 years ago
parent 7cc4e5afa1
commit a47ebf5c9e

@ -15,6 +15,7 @@
Bug #6129: Player avatar not displayed correctly for large window sizes when GUI scaling active
Bug #6131: Item selection in the avatar window not working correctly for large window sizes
Bug #6133: Cannot reliably sneak or steal in the sight of the NPCs siding with player
Editor: For consistency with TES CS make DELE records 4 bytes long
0.47.0
------

@ -145,7 +145,7 @@ void ESM::CellRef::save (ESMWriter &esm, bool wideRefNum, bool inInventory, bool
esm.writeHNCString("NAME", mRefID);
if (isDeleted) {
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -44,7 +44,7 @@ void ESM::DebugProfile::save (ESMWriter& esm, bool isDeleted) const
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -42,7 +42,7 @@ void ESM::Filter::save (ESMWriter& esm, bool isDeleted) const
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -50,7 +50,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -65,7 +65,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -61,7 +61,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -99,7 +99,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -55,7 +55,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -66,7 +66,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -56,7 +56,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}
esm.writeHNOCString("FNAM", mName);

@ -167,7 +167,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -86,7 +86,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -69,7 +69,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -95,7 +95,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -115,7 +115,7 @@ namespace ESM {
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -61,7 +61,7 @@ namespace ESM
esm.writeHNCString("NAME", mId);
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
}
else
{

@ -57,7 +57,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -53,7 +53,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -90,7 +90,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -100,7 +100,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -84,7 +84,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -123,7 +123,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -80,7 +80,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -63,7 +63,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -61,7 +61,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -53,7 +53,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
}
}

@ -61,7 +61,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -135,7 +135,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -156,7 +156,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -61,7 +61,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -68,7 +68,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -89,7 +89,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -61,7 +61,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -155,7 +155,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -54,7 +54,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -52,7 +52,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -59,7 +59,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

@ -47,7 +47,7 @@ namespace ESM
esm.writeHNCString("NAME", mId);
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
}
else
{

@ -43,7 +43,7 @@ namespace ESM
esm.writeHNCString("NAME", mId);
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
}
else
{

@ -62,7 +62,7 @@ namespace ESM
if (isDeleted)
{
esm.writeHNCString("DELE", "");
esm.writeHNString("DELE", "", 3);
return;
}

Loading…
Cancel
Save