1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 19:15:41 +00:00

Load FO4 acoustic space records

This commit is contained in:
Alexei Kotov 2023-08-15 23:52:55 +03:00
parent 5bce6d8d44
commit d74df61ce5

View file

@ -56,10 +56,16 @@ void ESM4::AcousticSpace::load(ESM4::Reader& reader)
case ESM4::SUB_INAM:
reader.get(mIsInterior);
break;
case ESM4::SUB_WNAM: // usually 0 for FONV (maybe # of close Actors for Walla to trigger)
case ESM4::SUB_XTRI:
std::uint8_t isInterior;
reader.get(isInterior);
mIsInterior = isInterior;
break;
case ESM4::SUB_WNAM:
{
std::uint32_t dummy;
reader.get(dummy);
// usually 0 for FONV (maybe # of close Actors for Walla to trigger) (4 bytes)
// Weather attenuation in FO4 (2 bytes)
reader.skipSubRecordData();
break;
}
case ESM4::SUB_BNAM: // TES5 reverb formid