Merge commit 'cebb78c' into lang/foundations

This commit is contained in:
Orkun ÇAKILKAYA 2026-09-29 22:26:47 +03:00
commit a8ccd34559

View file

@ -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 {