1
0

Implemented faster upscaling using templates.

Fixes #819.
This commit is contained in:
madmaxoft
2014-03-21 22:53:46 +01:00
parent 20fc7d6aea
commit c9163d39f7
6 changed files with 38 additions and 36 deletions

View File

@@ -428,7 +428,7 @@ void cHeiGenBiomal::GenHeightMap(int a_ChunkX, int a_ChunkZ, cChunkDef::HeightMa
Height[x + 17 * z] = GetHeightAt(x, z, a_ChunkX, a_ChunkZ, Biomes);
}
}
LinearUpscale2DArrayInPlace(Height, 17, 17, STEPX, STEPZ);
LinearUpscale2DArrayInPlace<17, 17, STEPX, STEPZ>(Height);
// Copy into the heightmap
for (int z = 0; z < cChunkDef::Width; z++)