1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-29 04:06:40 +00:00

ESSImport: handle deleted cell references

This commit is contained in:
scrawl 2015-01-22 23:28:43 +01:00
parent ba7cd04ff7
commit 1d29180e00
2 changed files with 3 additions and 4 deletions

View file

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

View file

@ -105,6 +105,7 @@ namespace ESSImport
blacklist.insert(std::make_pair("REFR", "DATA")); // player position blacklist.insert(std::make_pair("REFR", "DATA")); // player position
blacklist.insert(std::make_pair("CELL", "NAM8")); // fog of war 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("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? // this changes way too often, name suggests some renderer internal data?
blacklist.insert(std::make_pair("CELL", "ND3D")); blacklist.insert(std::make_pair("CELL", "ND3D"));