diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-18 17:28:48 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-18 17:28:48 +0100 |
commit | b1e33121f7dc4e0c5fff3bc9e384018590371407 (patch) | |
tree | 55a466dc65cb69341301eb3410ad3a81763094d8 /src/ft_death_screen.c | |
parent | Player position fix (diff) | |
download | 42-cub3d-b1e33121f7dc4e0c5fff3bc9e384018590371407.tar.gz 42-cub3d-b1e33121f7dc4e0c5fff3bc9e384018590371407.tar.bz2 42-cub3d-b1e33121f7dc4e0c5fff3bc9e384018590371407.tar.xz 42-cub3d-b1e33121f7dc4e0c5fff3bc9e384018590371407.tar.zst 42-cub3d-b1e33121f7dc4e0c5fff3bc9e384018590371407.zip |
Minimap back
Diffstat (limited to 'src/ft_death_screen.c')
-rw-r--r-- | src/ft_death_screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_death_screen.c b/src/ft_death_screen.c index cc299d1..e8ddc3a 100644 --- a/src/ft_death_screen.c +++ b/src/ft_death_screen.c @@ -25,10 +25,10 @@ static void while (y < (int32_t)cl->wlist.y_size) { x = 0; + cl->death_screen.tex_y = ((y * y_ratio) >> 16); while (x < (int32_t)cl->wlist.x_size) { cl->death_screen.tex_x = ((x * x_ratio) >> 16); - cl->death_screen.tex_y = ((y * y_ratio) >> 16); cl->img.ptr[x * 4 + (cl->img.sizeline * y)] = (uint8_t)cl->death_screen.ptr[cl->death_screen.tex_x * 4 + 4 * cl->death_screen.img_w * cl->death_screen.tex_y]; |