diff --git a/Runtime/World/CFluidPlaneGPU.cpp b/Runtime/World/CFluidPlaneGPU.cpp index 858df7af3..24d9fa9c9 100644 --- a/Runtime/World/CFluidPlaneGPU.cpp +++ b/Runtime/World/CFluidPlaneGPU.cpp @@ -55,15 +55,15 @@ void CFluidPlaneGPU::RenderStripWithRipples(float curY, const CFluidPlaneRender: pv.m_outerLevels.fill(subdivF); pv.m_innerLevels.fill(subdivF); } else { - const bool r19 = (flags[yTile + 1][xTile] & 0x2) != 0; // North - const bool r16 = (flags[yTile][xTile - 1] & 0x8) != 0; // West - const bool r18 = (flags[yTile][xTile + 1] & 0x4) != 0; // East - const bool r17 = (flags[yTile - 1][xTile] & 0x1) != 0; // South + const bool north = (flags[yTile + 1][xTile] & 0x2) != 0; + const bool west = (flags[yTile][xTile - 1] & 0x8) != 0; + const bool east = (flags[yTile][xTile + 1] & 0x4) != 0; + const bool south = (flags[yTile - 1][xTile] & 0x1) != 0; - pv.m_outerLevels[0] = r16 ? subdivF : 1.f; - pv.m_outerLevels[1] = r17 ? subdivF : 1.f; - pv.m_outerLevels[2] = r18 ? subdivF : 1.f; - pv.m_outerLevels[3] = r19 ? subdivF : 1.f; + pv.m_outerLevels[0] = west ? subdivF : 1.f; + pv.m_outerLevels[1] = south ? subdivF : 1.f; + pv.m_outerLevels[2] = east ? subdivF : 1.f; + pv.m_outerLevels[3] = north ? subdivF : 1.f; pv.m_innerLevels.fill(subdivF); }