diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-20 17:56:53 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-20 17:56:53 +0100 |
commit | 8cda46cc9c839fd8efc26f1ae95024c5abf7fb57 (patch) | |
tree | 2d86ece5708b05a71842ca16ed1013dee6cd26b7 /src/ft_draw_life_bar.c | |
parent | Ok almost (diff) | |
download | 42-cub3d-8cda46cc9c839fd8efc26f1ae95024c5abf7fb57.tar.gz 42-cub3d-8cda46cc9c839fd8efc26f1ae95024c5abf7fb57.tar.bz2 42-cub3d-8cda46cc9c839fd8efc26f1ae95024c5abf7fb57.tar.xz 42-cub3d-8cda46cc9c839fd8efc26f1ae95024c5abf7fb57.tar.zst 42-cub3d-8cda46cc9c839fd8efc26f1ae95024c5abf7fb57.zip |
Bounce it
Diffstat (limited to 'src/ft_draw_life_bar.c')
-rw-r--r-- | src/ft_draw_life_bar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ft_draw_life_bar.c b/src/ft_draw_life_bar.c index 06ecf70..b90daa1 100644 --- a/src/ft_draw_life_bar.c +++ b/src/ft_draw_life_bar.c @@ -44,7 +44,7 @@ static void x_ratio = (int)((cl->tnum[10].img_w << 16) / (7 * cl->mlist.scale)) + 1; y_ratio = (int)((cl->tnum[10].img_h << 16) / ((cl->mlist.map_h * cl->mlist.scale) - 20)) + 1; - y = cl->wlist.y_size - (cl->mlist.map_h * cl->mlist.scale) + 10; + y = cl->wlist.y_size - (cl->mlist.map_h * cl->mlist.scale) - 10; while (y < (int16_t)cl->wlist.y_size - 10) { cl->tnum[10].tex_y = (y * y_ratio) >> 16; @@ -54,8 +54,8 @@ static void + 10 + ((28 * cl->mlist.scale)))) { cl->tnum[10].tex_x = (x * x_ratio) >> 16; - if (cl->tnum[10].ptr[cl->tnum[10].tex_x * 4 + 4 * - cl->tnum[10].img_h * cl->tnum[10].tex_y]) + /* if (cl->tnum[10].ptr[cl->tnum[10].tex_x * 4 + 4 * */ + /* cl->tnum[10].img_h * cl->tnum[10].tex_y]) */ ft_draw_tnum(cl->tnum[10], y, x, cl); x++; } |