From c93d7221d99e0814a0677e597636641715ee0609 Mon Sep 17 00:00:00 2001 From: XProger Date: Sat, 29 Sep 2018 19:54:23 +0300 Subject: [PATCH] fix water mask --- src/cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache.h b/src/cache.h index e28df67..b15b8da 100644 --- a/src/cache.h +++ b/src/cache.h @@ -500,7 +500,7 @@ struct WaterCache { hasWater = s.ceiling > st.ceiling; if (s.ceiling == st.ceiling) { vec3 p = vec3(float(r.info.x + x * 1024 + 512), float(posY), float(r.info.z + z * 1024 + 512)); - hasWater = (s.ceiling * 256 - level->getCeiling(&s, p)) > 8.0f; + hasWater = (s.ceiling * 256 - level->getCeiling(&st, p)) > 8.0f; } }