mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-20 15:40:32 +00:00
Fix(CS): Generate blank lands at default height, not water level
This commit is contained in:
parent
f565730a9a
commit
b111d28ede
@ -204,9 +204,9 @@ namespace ESM
|
||||
if (mLandData == nullptr)
|
||||
mLandData = std::make_unique<LandData>();
|
||||
|
||||
mLandData->mHeights.fill(0);
|
||||
mLandData->mMinHeight = 0;
|
||||
mLandData->mMaxHeight = 0;
|
||||
mLandData->mHeights.fill(DEFAULT_HEIGHT);
|
||||
mLandData->mMinHeight = DEFAULT_HEIGHT;
|
||||
mLandData->mMaxHeight = DEFAULT_HEIGHT;
|
||||
for (size_t i = 0; i < LandRecordData::sLandNumVerts; ++i)
|
||||
{
|
||||
mLandData->mNormals[i * 3 + 0] = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user