diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-20 19:33:03 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-20 19:33:03 +0100 |
commit | ad0b32676e8ab435ea5767f7ca37496bf15df714 (patch) | |
tree | e33ded21db111ecfa4a96f1a718a6ef1cafc8a02 /src/ft_draw_life_bar.c | |
parent | it's not working (diff) | |
download | 42-cub3d-ad0b32676e8ab435ea5767f7ca37496bf15df714.tar.gz 42-cub3d-ad0b32676e8ab435ea5767f7ca37496bf15df714.tar.bz2 42-cub3d-ad0b32676e8ab435ea5767f7ca37496bf15df714.tar.xz 42-cub3d-ad0b32676e8ab435ea5767f7ca37496bf15df714.tar.zst 42-cub3d-ad0b32676e8ab435ea5767f7ca37496bf15df714.zip |
Better bounce
Diffstat (limited to 'src/ft_draw_life_bar.c')
-rw-r--r-- | src/ft_draw_life_bar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_draw_life_bar.c b/src/ft_draw_life_bar.c index 8e3da2c..80ec63e 100644 --- a/src/ft_draw_life_bar.c +++ b/src/ft_draw_life_bar.c @@ -41,8 +41,8 @@ static void int32_t x; int32_t y; - x_ratio = (int)((cl->tnum[10].img_w << 16) / (cl->mlist.map_w * cl->mlist.scale)) + 1; - y_ratio = (int)((cl->tnum[10].img_h << 16) / (cl->mlist.map_h * cl->mlist.scale)) + 1; + x_ratio = (int)((cl->tnum[10].img_w << 16) / (cl->mlist.map_w * cl->mlist.scale) - 10) + 1; + y_ratio = (int)((cl->tnum[10].img_h << 16) / (cl->mlist.map_h * cl->mlist.scale) - 10) + 1; y = cl->wlist.y_size - (cl->mlist.map_h * cl->mlist.scale) - 10; while (y < (int32_t)(cl->wlist.y_size - (cl->mlist.map_h * cl->mlist.scale) - 10 + (8 * cl->mlist.scale))) { |