1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-15 06:52:34 +02:00

Remove un-needed assert in WaterRenderer

Values above height count are valid and indicate water disabled.
This commit is contained in:
Daniel Evans 2017-02-19 01:15:53 +00:00
parent aa8ea65f92
commit aec738c396

View File

@ -62,7 +62,6 @@ void WaterRenderer::setWaterTable(float* waterHeights, unsigned int nHeights,
for (int x = 0; x < edgeNum; x++) {
int xi = x * WATER_HQ_DATA_SIZE;
for (int y = 0; y < edgeNum; y++) {
RW_CHECK(tiles[xi + y] < nHeights, "Tile index out of bounds");
if (tiles[xi + y] >= nHeights) continue;
// Tiles with the magic value contain no water.