diff options
Diffstat (limited to 'src/ft_draw_ammo_bar.c')
-rw-r--r-- | src/ft_draw_ammo_bar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_draw_ammo_bar.c b/src/ft_draw_ammo_bar.c index 8a73f68..667eee9 100644 --- a/src/ft_draw_ammo_bar.c +++ b/src/ft_draw_ammo_bar.c @@ -121,8 +121,8 @@ void uint8_t w_id; w_id = cl->plist.handles_weapon; - w_id = (cl->plist.handles_weapon == 2) ? (1) : (w_id); - w_id = (cl->plist.handles_weapon == 4) ? (2) : (w_id); + w_id = (w_id == 2) ? (1) : (w_id); + w_id = (w_id == 4) ? (2) : (w_id); ft_get_hw(cl); if (cl->plist.ammo[w_id] >= 0) { |