ESSImport: handle deleted cell references

pull/453/head
scrawl 10 years ago
parent ba7cd04ff7
commit 1d29180e00

@ -41,11 +41,9 @@ namespace ESSImport
mDeleted = 0;
if (esm.isNextSub("DELE"))
{
int deleted;
unsigned int deleted;
esm.getHT(deleted);
// Neither of this seems to work right...
//mDeleted = (deleted != 0);
//mDeleted = (deleted&0x1);
mDeleted = (deleted >> 24) & 0x2; // the other 3 bytes seem to be uninitialized garbage
}
if (esm.isNextSub("MVRF"))

@ -105,6 +105,7 @@ namespace ESSImport
blacklist.insert(std::make_pair("REFR", "DATA")); // player position
blacklist.insert(std::make_pair("CELL", "NAM8")); // fog of war
blacklist.insert(std::make_pair("GAME", "GMDT")); // weather data, current time always changes
blacklist.insert(std::make_pair("CELL", "DELE")); // first 3 bytes are uninitialized
// this changes way too often, name suggests some renderer internal data?
blacklist.insert(std::make_pair("CELL", "ND3D"));

Loading…
Cancel
Save