1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-04-11 10:06:43 +00:00

Cleanup(loadcell): Remove unused integer water flag

This commit is contained in:
Dave Corley 2024-02-20 08:01:08 -06:00
parent bb35f0366a
commit f95cad07f2
2 changed files with 0 additions and 5 deletions

View file

@ -128,12 +128,10 @@ namespace ESM
int32_t waterl; int32_t waterl;
esm.getHT(waterl); esm.getHT(waterl);
mWater = static_cast<float>(waterl); mWater = static_cast<float>(waterl);
mWaterInt = true;
break; break;
case fourCC("WHGT"): case fourCC("WHGT"):
float waterLevel; float waterLevel;
esm.getHT(waterLevel); esm.getHT(waterLevel);
mWaterInt = false;
mHasWater = true; mHasWater = true;
if (!std::isfinite(waterLevel)) if (!std::isfinite(waterLevel))
{ {
@ -316,7 +314,6 @@ namespace ESM
mName.clear(); mName.clear();
mRegion = ESM::RefId(); mRegion = ESM::RefId();
mWater = 0; mWater = 0;
mWaterInt = false;
mMapColor = 0; mMapColor = 0;
mRefNumCounter = 0; mRefNumCounter = 0;

View file

@ -111,7 +111,6 @@ namespace ESM
, mRegion(ESM::RefId()) , mRegion(ESM::RefId())
, mHasAmbi(true) , mHasAmbi(true)
, mWater(0) , mWater(0)
, mWaterInt(false)
, mHasWater(false) , mHasWater(false)
, mMapColor(0) , mMapColor(0)
, mRefNumCounter(0) , mRefNumCounter(0)
@ -132,7 +131,6 @@ namespace ESM
bool mHasAmbi; bool mHasAmbi;
float mWater; // Water level float mWater; // Water level
bool mWaterInt;
bool mHasWater; bool mHasWater;
int32_t mMapColor; int32_t mMapColor;
// Counter for RefNums. This is only used during content file editing and has no impact on gameplay. // Counter for RefNums. This is only used during content file editing and has no impact on gameplay.