Split ESM headers

This commit is contained in:
elsid 2024-05-02 03:09:13 +02:00
parent a57c350c08
commit 01166b1f26
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625
29 changed files with 172 additions and 118 deletions

View file

@ -1,8 +1,9 @@
#include "util.hpp"
#include <components/esm3/loadland.hpp>
#include <components/esm4/loadland.hpp>
osg::Vec2 ESM::indexToPosition(const ESM::ExteriorCellLocation& cellIndex, bool centre)
osg::Vec2f ESM::indexToPosition(const ESM::ExteriorCellLocation& cellIndex, bool centre)
{
const int cellSize = ESM::getCellSize(cellIndex.mWorldspace);
@ -14,7 +15,8 @@ osg::Vec2 ESM::indexToPosition(const ESM::ExteriorCellLocation& cellIndex, bool
x += cellSize / 2;
y += cellSize / 2;
}
return osg::Vec2(x, y);
return osg::Vec2f(x, y);
}
int ESM::getLandSize(ESM::RefId worldspaceId)