Don't save to or read automove state from saved games (#5452)

This commit is contained in:
Capostrophic 2020-06-06 15:45:48 +03:00
parent 2eb9d4ad4e
commit 1873da4c91
5 changed files with 5 additions and 12 deletions

View file

@ -21,8 +21,9 @@ void ESM::Player::load (ESMReader &esm)
else
mHasMark = false;
mAutoMove = 0;
esm.getHNOT (mAutoMove, "AMOV");
// Automove, no longer used.
if (esm.isNextSub("AMOV"))
esm.skipHSub();
mBirthsign = esm.getHNString ("SIGN");
@ -66,9 +67,6 @@ void ESM::Player::save (ESMWriter &esm) const
mMarkedCell.save (esm);
}
if (mAutoMove)
esm.writeHNT ("AMOV", mAutoMove);
esm.writeHNString ("SIGN", mBirthsign);
esm.writeHNT ("CURD", mCurrentCrimeId);

View file

@ -25,9 +25,8 @@ namespace ESM
unsigned char mHasMark;
ESM::Position mMarkedPosition;
CellId mMarkedCell;
unsigned char mAutoMove;
std::string mBirthsign;
int mCurrentCrimeId;
int mPaidCrimeId;