mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Store the min/max height in LandData
This commit is contained in:
parent
051c17a184
commit
0fc465da59
6 changed files with 21 additions and 20 deletions
|
@ -65,8 +65,6 @@ namespace ESMTerrain
|
|||
{
|
||||
assert (size <= 1 && "Storage::getMinMaxHeights, chunk size should be <= 1 cell");
|
||||
|
||||
/// \todo investigate if min/max heights should be stored at load time in ESM::Land instead
|
||||
|
||||
osg::Vec2f origin = center - osg::Vec2f(size/2.f, size/2.f);
|
||||
|
||||
int cellX = static_cast<int>(std::floor(origin.x()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue