mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 03:12:36 +01:00
Remove un-needed assert in WaterRenderer
Values above height count are valid and indicate water disabled.
This commit is contained in:
parent
aa8ea65f92
commit
aec738c396
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user