mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-28 19:21:04 +00:00
Cleanup
This commit is contained in:
parent
0fe095303f
commit
d55ba0cfa2
@ -84,11 +84,9 @@ namespace Nif
|
|||||||
nif->read(mAccumRootName);
|
nif->read(mAccumRootName);
|
||||||
mTextKeys.read(nif);
|
mTextKeys.read(nif);
|
||||||
}
|
}
|
||||||
uint32_t numBlocks;
|
mControlledBlocks.resize(nif->get<uint32_t>());
|
||||||
nif->read(numBlocks);
|
|
||||||
if (nif->getVersion() >= NIFStream::generateVersion(10, 1, 0, 106))
|
if (nif->getVersion() >= NIFStream::generateVersion(10, 1, 0, 106))
|
||||||
nif->read(mArrayGrowBy);
|
nif->read(mArrayGrowBy);
|
||||||
mControlledBlocks.resize(numBlocks);
|
|
||||||
for (ControlledBlock& block : mControlledBlocks)
|
for (ControlledBlock& block : mControlledBlocks)
|
||||||
block.read(nif);
|
block.read(nif);
|
||||||
}
|
}
|
||||||
@ -109,8 +107,8 @@ namespace Nif
|
|||||||
|
|
||||||
nif->read(mWeight);
|
nif->read(mWeight);
|
||||||
mTextKeys.read(nif);
|
mTextKeys.read(nif);
|
||||||
mExtrapolationMode = static_cast<NiTimeController::ExtrapolationMode>(nif->getUInt());
|
mExtrapolationMode = static_cast<NiTimeController::ExtrapolationMode>(nif->get<uint32_t>());
|
||||||
mFrequency = nif->getFloat();
|
nif->read(mFrequency);
|
||||||
if (nif->getVersion() <= NIFStream::generateVersion(10, 4, 0, 1))
|
if (nif->getVersion() <= NIFStream::generateVersion(10, 4, 0, 1))
|
||||||
nif->read(mPhase);
|
nif->read(mPhase);
|
||||||
nif->read(mStartTime);
|
nif->read(mStartTime);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user