From d5a0b5c7c01ebc0e14b3e28ff4af41d3ebf91c2e Mon Sep 17 00:00:00 2001 From: Alula <6276139+alula@users.noreply.github.com> Date: Fri, 1 Nov 2024 13:48:42 +0100 Subject: [PATCH] fix water BitLUT --- src/game/map.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/map.rs b/src/game/map.rs index 0761df8..cc5729f 100644 --- a/src/game/map.rs +++ b/src/game/map.rs @@ -38,7 +38,9 @@ impl BitLUT { break; } - result.bits[i / 64] |= (bits[i] as u64) << (i % 64); + let bit = bits[i]; + result.bits[bit as usize / 64] |= 1 << (bit % 64); + i += 1; } result