diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-01 19:37:00 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-01 19:37:00 +0200 |
commit | c2fabd5bee8cc8a386d2012e6b08471955fbcaa8 (patch) | |
tree | dd59fd3f0c76d4ac79efc403908092e31cf91a1f /src/ft_extra_keys.c | |
parent | ok (diff) | |
download | 42-cub3d-c2fabd5bee8cc8a386d2012e6b08471955fbcaa8.tar.gz 42-cub3d-c2fabd5bee8cc8a386d2012e6b08471955fbcaa8.tar.bz2 42-cub3d-c2fabd5bee8cc8a386d2012e6b08471955fbcaa8.tar.xz 42-cub3d-c2fabd5bee8cc8a386d2012e6b08471955fbcaa8.tar.zst 42-cub3d-c2fabd5bee8cc8a386d2012e6b08471955fbcaa8.zip |
Later
Diffstat (limited to 'src/ft_extra_keys.c')
-rw-r--r-- | src/ft_extra_keys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_extra_keys.c b/src/ft_extra_keys.c index 1a71402..03c6f75 100644 --- a/src/ft_extra_keys.c +++ b/src/ft_extra_keys.c @@ -83,7 +83,7 @@ int clist->plist.ammo[w_id] -= w_id; clist->sfx[clist->plist.handles_weapon + 7].sfx_play(clist->sfx); clist->plist.fire = 1; - ft_shoot(clist, clist->wlist.x_size / 2); + ft_shoot(clist); return (0); } else if (clist->plist.fire == 0 && clist->plist.ammo[w_id] <= 0) |