From cebb78c2c389bf8937984562179e09c6b5749dab Mon Sep 17 00:00:00 2001 From: Orkuncakilkaya Date: Tue, 29 Sep 2026 22:20:20 +0300 Subject: [PATCH] render3d: gd_fill tests a deflated tile's top bit as written, (b & 0x80000000) != 0, now that the compiler emits the literal (lang/hex-literal, reseeded) - the b < 0 stand-in goes Co-Authored-By: Claude Opus 5.5 --- packages/ludic.render3d/ground_density.ludic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ludic.render3d/ground_density.ludic b/packages/ludic.render3d/ground_density.ludic index 018e33c2..7441ec05 100644 --- a/packages/ludic.render3d/ground_density.ludic +++ b/packages/ludic.render3d/ground_density.ludic @@ -130,7 +130,7 @@ function gd_fill(render3d_st: mut Render3dState, l: int, key: int, s: int) -> vo } let n = b & 0x7FFFFFFF file_seek(render3d_st.gd_file, render3d_st.gd_base + a, 0) - if b < 0 { + if (b & 0x80000000) != 0 { # the top bit: the tile is deflated file_read(render3d_st.gd_file, data_of(render3d_st.gd_zbuf), min(n, len(render3d_st.gd_zbuf))) z_inflate(data_of(render3d_st.gd_zbuf), n, mem_off(data_of(pool), o), tb) } else {