Skip to content

Commit

Permalink
Doubled texture variations (#3594)
Browse files Browse the repository at this point in the history
Allow up to 32 different tmap files. Not more because they are all loaded into memory.
  • Loading branch information
Loobinex authored Jan 25, 2025
1 parent c56493d commit 0079603
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/engine_render.c
Original file line number Diff line number Diff line change
Expand Up @@ -4026,7 +4026,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)] & 0xF) * 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
2 changes: 1 addition & 1 deletion src/engine_textures.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extern "C" {
#endif
/******************************************************************************/
// Num of known texture files
#define TEXTURE_VARIATIONS_COUNT 16
#define TEXTURE_VARIATIONS_COUNT 32

// Static textures in tmapa
#define TEXTURE_BLOCKS_STAT_COUNT_A 544
Expand Down

0 comments on commit 0079603

Please sign in to comment.