1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 15:15:40 +00:00

Fix(CS): Generate blank lands at default height, not water level

This commit is contained in:
Dave Corley 2023-12-10 08:54:44 -06:00
parent 0ba2e569d9
commit b5d118f5ee

View file

@ -220,7 +220,7 @@ namespace ESM
mLandData = std::make_unique<LandData>(); mLandData = std::make_unique<LandData>();
mLandData->mHeightOffset = 0; mLandData->mHeightOffset = 0;
mLandData->mHeights.fill(0); std::fill(std::begin(mLandData->mHeights), std::end(mLandData->mHeights), DEFAULT_HEIGHT);
mLandData->mMinHeight = 0; mLandData->mMinHeight = 0;
mLandData->mMaxHeight = 0; mLandData->mMaxHeight = 0;
for (size_t i = 0; i < LandRecordData::sLandNumVerts; ++i) for (size_t i = 0; i < LandRecordData::sLandNumVerts; ++i)