diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-23 16:49:30 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-23 16:49:30 +0100 |
commit | 314a8e07226d1f4c9d9537371963c233d781ac08 (patch) | |
tree | a23ef16ba76449f0742d73b10513464c64bcc0ea /src/ft_draw_ammo_bar.c | |
parent | Stuff to fix but ok (diff) | |
download | 42-cub3d-314a8e07226d1f4c9d9537371963c233d781ac08.tar.gz 42-cub3d-314a8e07226d1f4c9d9537371963c233d781ac08.tar.bz2 42-cub3d-314a8e07226d1f4c9d9537371963c233d781ac08.tar.xz 42-cub3d-314a8e07226d1f4c9d9537371963c233d781ac08.tar.zst 42-cub3d-314a8e07226d1f4c9d9537371963c233d781ac08.zip |
sfx: good
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) { |