1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 17:59:56 +00:00
openmw/apps/essimporter/importgame.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
649 B
C++
Raw Normal View History

#include "importgame.hpp"
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
void GAME::load(ESM::ESMReader& esm)
{
esm.getSubNameIs("GMDT");
esm.getSubHeader();
if (esm.getSubSize() == 92)
2022-09-22 18:26:05 +00:00
{
esm.getExact(&mGMDT, 92);
mGMDT.mSecundaPhase = 0;
2022-09-22 18:26:05 +00:00
}
else if (esm.getSubSize() == 96)
2022-09-22 18:26:05 +00:00
{
esm.getT(mGMDT);
}
else
esm.fail("unexpected subrecord size for GAME.GMDT");
2015-01-24 16:15:25 +00:00
mGMDT.mWeatherTransition &= (0x000000ff);
mGMDT.mSecundaPhase &= (0x000000ff);
mGMDT.mMasserPhase &= (0x000000ff);
}
}