mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Merge branch 'cleanup' into 'master'
Remove constant conditions See merge request OpenMW/openmw!1527
This commit is contained in:
commit
bafde5c9c4
@ -1,7 +1,6 @@
|
||||
#include "creaturestats.hpp"
|
||||
#include "esmreader.hpp"
|
||||
#include "esmwriter.hpp"
|
||||
#include "savedgame.hpp"
|
||||
|
||||
#include <limits>
|
||||
|
||||
@ -183,9 +182,7 @@ void ESM::CreatureStats::save (ESMWriter &esm) const
|
||||
for (int i=0; i<3; ++i)
|
||||
mDynamic[i].save (esm);
|
||||
|
||||
if (ESM::SavedGame::sCurrentFormat <= 18 && mMissingACDT)
|
||||
esm.writeHNT("GOLD", std::numeric_limits<int>::min());
|
||||
else if(mGoldPool)
|
||||
if (mGoldPool)
|
||||
esm.writeHNT("GOLD", mGoldPool);
|
||||
|
||||
if (mTradeTime.mDay != 0 || mTradeTime.mHour != 0)
|
||||
@ -258,7 +255,7 @@ void ESM::CreatureStats::save (ESMWriter &esm) const
|
||||
for (int i=0; i<4; ++i)
|
||||
mAiSettings[i].save(esm);
|
||||
}
|
||||
if(ESM::SavedGame::sCurrentFormat > 18 && mMissingACDT)
|
||||
if (mMissingACDT)
|
||||
esm.writeHNT("NOAC", mMissingACDT);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user