Remove unused mLastDrowningHit

openmw-35
scrawl 10 years ago
parent 714b19015c
commit 1869d37cfc

@ -33,7 +33,6 @@ MWMechanics::NpcStats::NpcStats()
, mWerewolfKills (0) , mWerewolfKills (0)
, mProfit(0) , mProfit(0)
, mTimeToStartDrowning(20.0) , mTimeToStartDrowning(20.0)
, mLastDrowningHit(0)
{ {
mSkillIncreases.resize (ESM::Attribute::Length, 0); mSkillIncreases.resize (ESM::Attribute::Length, 0);
} }
@ -522,7 +521,6 @@ void MWMechanics::NpcStats::writeState (ESM::NpcStats& state) const
std::copy (mUsedIds.begin(), mUsedIds.end(), std::back_inserter (state.mUsedIds)); std::copy (mUsedIds.begin(), mUsedIds.end(), std::back_inserter (state.mUsedIds));
state.mTimeToStartDrowning = mTimeToStartDrowning; state.mTimeToStartDrowning = mTimeToStartDrowning;
state.mLastDrowningHit = mLastDrowningHit;
} }
void MWMechanics::NpcStats::readState (const ESM::NpcStats& state) void MWMechanics::NpcStats::readState (const ESM::NpcStats& state)
@ -573,5 +571,4 @@ void MWMechanics::NpcStats::readState (const ESM::NpcStats& state)
mUsedIds.insert (*iter); mUsedIds.insert (*iter);
mTimeToStartDrowning = state.mTimeToStartDrowning; mTimeToStartDrowning = state.mTimeToStartDrowning;
mLastDrowningHit = state.mLastDrowningHit;
} }

@ -46,8 +46,6 @@ namespace MWMechanics
/// Countdown to getting damage while underwater /// Countdown to getting damage while underwater
float mTimeToStartDrowning; float mTimeToStartDrowning;
/// time since last hit from drowning
float mLastDrowningHit;
public: public:

@ -75,8 +75,9 @@ void ESM::NpcStats::load (ESMReader &esm)
mTimeToStartDrowning = 0; mTimeToStartDrowning = 0;
esm.getHNOT (mTimeToStartDrowning, "DRTI"); esm.getHNOT (mTimeToStartDrowning, "DRTI");
mLastDrowningHit = 0; // No longer used
esm.getHNOT (mLastDrowningHit, "DRLH"); float lastDrowningHit = 0;
esm.getHNOT (lastDrowningHit, "DRLH");
// No longer used // No longer used
float levelHealthBonus = 0; float levelHealthBonus = 0;
@ -146,9 +147,6 @@ void ESM::NpcStats::save (ESMWriter &esm) const
if (mTimeToStartDrowning) if (mTimeToStartDrowning)
esm.writeHNT ("DRTI", mTimeToStartDrowning); esm.writeHNT ("DRTI", mTimeToStartDrowning);
if (mLastDrowningHit)
esm.writeHNT ("DRLH", mLastDrowningHit);
if (mCrimeId != -1) if (mCrimeId != -1)
esm.writeHNT ("CRID", mCrimeId); esm.writeHNT ("CRID", mCrimeId);
} }

@ -45,7 +45,6 @@ namespace ESM
int mSkillIncrease[8]; int mSkillIncrease[8];
std::vector<std::string> mUsedIds; std::vector<std::string> mUsedIds;
float mTimeToStartDrowning; float mTimeToStartDrowning;
float mLastDrowningHit;
int mCrimeId; int mCrimeId;
void load (ESMReader &esm); void load (ESMReader &esm);

Loading…
Cancel
Save