|
|
@ -232,8 +232,8 @@ namespace ESMTerrain
|
|
|
|
// Only relevant for chunks smaller than (contained in) one cell
|
|
|
|
// Only relevant for chunks smaller than (contained in) one cell
|
|
|
|
rowStart += (origin.x() - startCellX) * ESM::Land::LAND_SIZE;
|
|
|
|
rowStart += (origin.x() - startCellX) * ESM::Land::LAND_SIZE;
|
|
|
|
colStart += (origin.y() - startCellY) * ESM::Land::LAND_SIZE;
|
|
|
|
colStart += (origin.y() - startCellY) * ESM::Land::LAND_SIZE;
|
|
|
|
int rowEnd = rowStart + std::min(1.f, size) * (ESM::Land::LAND_SIZE-1) + 1;
|
|
|
|
int rowEnd = std::min(static_cast<int>(rowStart + std::min(1.f, size) * (ESM::Land::LAND_SIZE-1) + 1), ESM::Land::LAND_SIZE);
|
|
|
|
int colEnd = colStart + std::min(1.f, size) * (ESM::Land::LAND_SIZE-1) + 1;
|
|
|
|
int colEnd = std::min(static_cast<int>(colStart + std::min(1.f, size) * (ESM::Land::LAND_SIZE-1) + 1), ESM::Land::LAND_SIZE);
|
|
|
|
|
|
|
|
|
|
|
|
vertY = vertY_;
|
|
|
|
vertY = vertY_;
|
|
|
|
for (int col=colStart; col<colEnd; col += increment)
|
|
|
|
for (int col=colStart; col<colEnd; col += increment)
|
|
|
|