aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_ammo_bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_draw_ammo_bar.c')
-rw-r--r--src/ft_draw_ammo_bar.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ft_draw_ammo_bar.c b/src/ft_draw_ammo_bar.c
index 667eee9..bf8dbda 100644
--- a/src/ft_draw_ammo_bar.c
+++ b/src/ft_draw_ammo_bar.c
@@ -21,17 +21,17 @@ static void
cl->img.ptr[(x + 10) * 4 +
(cl->img.sizeline * (int)(y + ((cl->wlist.y_size - 10) -
- (2 * ((cl->mlist.map_h * scl) / 1.3)) - 5)))] =
+ (2 * ((cl->mlist.map_h * scl) / 1.3)) - 40)))] =
(uint8_t)cl->tnum[id].ptr[cl->tnum[id].tex_x * 4 + 4 *
cl->tnum[id].img_w * cl->tnum[id].tex_y];
cl->img.ptr[(x + 10) * 4 +
(cl->img.sizeline * (int)(y + ((cl->wlist.y_size - 10) -
- (2 * ((cl->mlist.map_h * scl) / 1.3)) - 5))) + 1] =
+ (2 * ((cl->mlist.map_h * scl) / 1.3)) - 40))) + 1] =
(uint8_t)cl->tnum[id].ptr[cl->tnum[id].tex_x * 4 + 4 *
cl->tnum[id].img_w * cl->tnum[id].tex_y + 1];
cl->img.ptr[(x + 10) * 4 +
(cl->img.sizeline * (int)(y + ((cl->wlist.y_size - 10) -
- (2 * ((cl->mlist.map_h * scl) / 1.3)) - 5))) + 2] =
+ (2 * ((cl->mlist.map_h * scl) / 1.3)) - 40))) + 2] =
(uint8_t)cl->tnum[id].ptr[cl->tnum[id].tex_x * 4 + 4 *
cl->tnum[id].img_w * cl->tnum[id].tex_y + 2];
}
@@ -99,14 +99,14 @@ static void
const int16_t scl = cl->mlist.scale;
x = 10;
- y = (cl->wlist.y_size - 10) - (2 * ((cl->mlist.map_h * scl) / 1.3)) - 5;
- while (y < (int16_t)(cl->wlist.y_size - (cl->mlist.map_h * scl) - 30))
+ y = (cl->wlist.y_size - 10) - (2 * ((cl->mlist.map_h * scl) / 1.3)) - 40;
+ while (y < (int16_t)(cl->wlist.y_size - (cl->mlist.map_h * scl)) - 30)
{
while (x < (int16_t)((cl->mlist.map_w * scl) / 4) + 20)
x++;
y++;
}
- y -= (cl->wlist.y_size - 10) - (2 * ((cl->mlist.map_h * scl) / 1.3)) - 5;
+ y -= (cl->wlist.y_size - 10) - (2 * ((cl->mlist.map_h * scl) / 1.3)) - 40;
x -= 10;
y = (y <= 0) ? (1) : (y);
x = (x <= 0) ? (1) : (x);