mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 21:40:03 +00:00
use std::fill instead of for
This commit is contained in:
parent
3599e804e1
commit
69083369f8
@ -50,13 +50,7 @@ namespace CSVRender
|
||||
|
||||
void TerrainStorage::resetHeights()
|
||||
{
|
||||
for (int x = 0; x < ESM::Land::LAND_SIZE; ++x)
|
||||
{
|
||||
for (int y = 0; y < ESM::Land::LAND_SIZE; ++y)
|
||||
{
|
||||
mAlteredHeight[y*ESM::Land::LAND_SIZE + x] = 0;
|
||||
}
|
||||
}
|
||||
std::fill(std::begin(mAlteredHeight), std::end(mAlteredHeight), 0);
|
||||
}
|
||||
|
||||
float TerrainStorage::getSumOfAlteredAndTrueHeight(int cellX, int cellY, int inCellX, int inCellY)
|
||||
|
Loading…
x
Reference in New Issue
Block a user