Add ESM::Land::DEFAULT_HEIGHT

move
scrawl 9 years ago
parent fc3de3302e
commit 27577ce765

@ -271,7 +271,7 @@ namespace MWWorld
else
{
static std::vector<float> defaultHeight;
defaultHeight.resize(verts*verts, -2048.f);
defaultHeight.resize(verts*verts, ESM::Land::DEFAULT_HEIGHT);
mPhysics->addHeightField (&defaultHeight[0], cell->getCell()->getGridX(), cell->getCell()->getGridY(),
worldsize / (verts-1), verts);
}

@ -46,6 +46,9 @@ struct Land
DATA_VTEX = 16
};
// default height to use in case there is no Land record
static const int DEFAULT_HEIGHT = -2048;
// number of vertices per side
static const int LAND_SIZE = 65;

@ -16,7 +16,7 @@
namespace ESMTerrain
{
const float defaultHeight = -2048;
const float defaultHeight = ESM::Land::DEFAULT_HEIGHT;
Storage::Storage(const VFS::Manager *vfs, const std::string& normalMapPattern, bool autoUseNormalMaps, const std::string& specularMapPattern, bool autoUseSpecularMaps)
: mVFS(vfs)

Loading…
Cancel
Save