Skip to content

Commit

Permalink
fix minimap clobbering other surfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsfdsfgs committed Aug 27, 2021
1 parent 8131ce4 commit 00a95a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,8 @@ static void menu_map_open(void) {
// append CLUT
memcpy(data + aw * ah, map_clut, sizeof(map_clut));
// upload for later
gfx_surf[SURFACE_ID_MAP].tex_x = 0; // let gfx_upload image determine the coords
gfx_surf[SURFACE_ID_MAP].tex_y = 0;
gfx_upload_image(data, aw, ah, 1, SURFACE_ID_MAP, TRUE);
mem_free(data);

Expand Down

0 comments on commit 00a95a7

Please sign in to comment.