1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-25 12:41:01 +00:00

Fix variable name

This commit is contained in:
elsid 2023-07-30 20:07:20 +02:00
parent c10f28a413
commit 51b24c2b70
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

View File

@ -194,7 +194,7 @@ namespace ESMTerrain
int startCellX = static_cast<int>(std::floor(origin.x())); int startCellX = static_cast<int>(std::floor(origin.x()));
int startCellY = static_cast<int>(std::floor(origin.y())); int startCellY = static_cast<int>(std::floor(origin.y()));
const int landSize = ESM::getLandSize(worldspace); const int landSize = ESM::getLandSize(worldspace);
const int LandSizeInUnits = ESM::getCellSize(worldspace); const int landSizeInUnits = ESM::getCellSize(worldspace);
size_t numVerts = static_cast<size_t>(size * (landSize - 1) / increment + 1); size_t numVerts = static_cast<size_t>(size * (landSize - 1) / increment + 1);
@ -268,9 +268,10 @@ namespace ESMTerrain
height = heightData->getHeights()[col * landSize + row]; height = heightData->getHeights()[col * landSize + row];
if (alteration) if (alteration)
height += getAlteredHeight(col, row); height += getAlteredHeight(col, row);
positions[static_cast<unsigned int>(vertX * numVerts + vertY)] positions[static_cast<unsigned int>(vertX * numVerts + vertY)]
= osg::Vec3f((vertX / float(numVerts - 1) - 0.5f) * size * LandSizeInUnits, = osg::Vec3f((vertX / float(numVerts - 1) - 0.5f) * size * landSizeInUnits,
(vertY / float(numVerts - 1) - 0.5f) * size * LandSizeInUnits, height); (vertY / float(numVerts - 1) - 0.5f) * size * landSizeInUnits, height);
if (normalData) if (normalData)
{ {