aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_life_bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_draw_life_bar.c')
-rw-r--r--src/ft_draw_life_bar.c6
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++;
}