mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 12:45:36 +00:00
Fix(CS): Use ESM flags and not internal ones for verifying presence of a subrecord
This commit is contained in:
parent
4feeb02349
commit
eee9ad4744
1 changed files with 5 additions and 5 deletions
|
@ -101,27 +101,27 @@ namespace ESM
|
||||||
{
|
{
|
||||||
case fourCC("VNML"):
|
case fourCC("VNML"):
|
||||||
esm.skipHSub();
|
esm.skipHSub();
|
||||||
if (mFlags & DATA_VNML)
|
if (mFlags & Flag_HeightsNormals)
|
||||||
mDataTypes |= DATA_VNML;
|
mDataTypes |= DATA_VNML;
|
||||||
break;
|
break;
|
||||||
case fourCC("VHGT"):
|
case fourCC("VHGT"):
|
||||||
esm.skipHSub();
|
esm.skipHSub();
|
||||||
if (mFlags & DATA_VHGT)
|
if (mFlags & Flag_HeightsNormals)
|
||||||
mDataTypes |= DATA_VHGT;
|
mDataTypes |= DATA_VHGT;
|
||||||
break;
|
break;
|
||||||
case fourCC("WNAM"):
|
case fourCC("WNAM"):
|
||||||
esm.getHExact(mWnam.data(), mWnam.size());
|
esm.getHExact(mWnam.data(), mWnam.size());
|
||||||
if (mFlags & DATA_WNAM)
|
if (mFlags & Flag_HeightsNormals)
|
||||||
mDataTypes |= DATA_WNAM;
|
mDataTypes |= DATA_WNAM;
|
||||||
break;
|
break;
|
||||||
case fourCC("VCLR"):
|
case fourCC("VCLR"):
|
||||||
esm.skipHSub();
|
esm.skipHSub();
|
||||||
if (mFlags & DATA_VCLR)
|
if (mFlags & Flag_Colors)
|
||||||
mDataTypes |= DATA_VCLR;
|
mDataTypes |= DATA_VCLR;
|
||||||
break;
|
break;
|
||||||
case fourCC("VTEX"):
|
case fourCC("VTEX"):
|
||||||
esm.skipHSub();
|
esm.skipHSub();
|
||||||
if (mFlags & DATA_VCLR)
|
if (mFlags & Flag_Textures)
|
||||||
mDataTypes |= DATA_VTEX;
|
mDataTypes |= DATA_VTEX;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue