diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_draw_life_bar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_draw_life_bar.c b/src/ft_draw_life_bar.c index ed270f9..501fd71 100644 --- a/src/ft_draw_life_bar.c +++ b/src/ft_draw_life_bar.c @@ -26,7 +26,8 @@ static void x = (cl->mlist.map_w * scl) + 20 + 9; while (x < (cl->mlist.map_w * scl) + 20 + ((3 * scl) - 9)) { - y = (wl->y_size - (cl->mlist.map_h * scl) - 20 + 9) + ((100 - cl->plist.life) * (h / (cl->mlist.map_h * scl) - 1)); + y = (wl->y_size - (cl->mlist.map_h * scl) - 20 + 9) + + ((100 - cl->plist.life) * (h / (cl->mlist.map_h * scl) - 1)); while (y < wl->y_size - 9) { *(int*)(cl->img.ptr + (x * 4 + (y * cl->img.sizeline))) = col; |