forked from teamnwah/openmw-tes3coop
Add ESM::Land::DEFAULT_HEIGHT
This commit is contained in:
parent
fc3de3302e
commit
27577ce765
3 changed files with 5 additions and 2 deletions
|
@ -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…
Reference in a new issue