mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Simplify filling positions
This commit is contained in:
parent
4a2a320e08
commit
2c2a60b86c
@ -1,6 +1,6 @@
|
||||
#include "storage.hpp"
|
||||
|
||||
#include <set>
|
||||
#include <algorithm>
|
||||
|
||||
#include <osg/Image>
|
||||
#include <osg/Plane>
|
||||
@ -320,12 +320,7 @@ namespace ESMTerrain
|
||||
assert(baseVertY == numVerts); // Ensure we covered whole area
|
||||
|
||||
if (!validHeightDataExists && ESM::isEsm4Ext(worldspace))
|
||||
{
|
||||
for (unsigned int iVert = 0; iVert < numVerts * numVerts; iVert++)
|
||||
{
|
||||
positions[static_cast<unsigned int>(iVert)] = osg::Vec3f(0.f, 0.f, 0.f);
|
||||
}
|
||||
}
|
||||
std::fill(positions.begin(), positions.end(), osg::Vec3f());
|
||||
}
|
||||
|
||||
Storage::UniqueTextureId Storage::getVtexIndexAt(
|
||||
|
Loading…
x
Reference in New Issue
Block a user