Skip to content

Commit

Permalink
limit to 32
Browse files Browse the repository at this point in the history
  • Loading branch information
Loobinex committed Oct 26, 2024
1 parent b62e99d commit 06cd9a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine_render.c
Original file line number Diff line number Diff line change
Expand Up @@ -4028,7 +4028,7 @@ unsigned short engine_remap_texture_blocks(long stl_x, long stl_y, unsigned shor
{
long slb_x = subtile_slab(stl_x);
long slb_y = subtile_slab(stl_y);
return tex_id + (gameadd.slab_ext_data[get_slab_number(slb_x,slb_y)]) * TEXTURE_BLOCKS_COUNT;
return tex_id + (gameadd.slab_ext_data[get_slab_number(slb_x,slb_y)] & 0x1F) * TEXTURE_BLOCKS_COUNT;
}

static void do_a_plane_of_engine_columns_perspective(long stl_x, long stl_y, long plane_start, long plane_end)
Expand Down

0 comments on commit 06cd9a5

Please sign in to comment.