diff --git a/src/rendering/water_renderer.cpp b/src/rendering/water_renderer.cpp index a01cfedb..d79e53f7 100644 --- a/src/rendering/water_renderer.cpp +++ b/src/rendering/water_renderer.cpp @@ -942,13 +942,10 @@ void WaterRenderer::loadFromWMO([[maybe_unused]] const pipeline::WMOLiquid& liqu if (surface.origin.z > 2000.0f || surface.origin.z < -500.0f) return; - // Build tile mask from MLIQ flags and per-vertex heights + // Build tile mask from MLIQ flags size_t tileCount = static_cast(surface.width) * static_cast(surface.height); size_t maskBytes = (tileCount + 7) / 8; surface.mask.assign(maskBytes, 0x00); - const float baseZ = liquid.basePosition.z; - const bool hasHeights = !liquid.heights.empty() && - liquid.heights.size() >= static_cast(vertexCount); for (size_t t = 0; t < tileCount; t++) { bool hasLiquid = true; int tx = static_cast(t) % surface.width;