aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_extra_keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_extra_keys.c')
-rw-r--r--src/ft_extra_keys.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ft_extra_keys.c b/src/ft_extra_keys.c
index 0ccf3fc..f8a6db8 100644
--- a/src/ft_extra_keys.c
+++ b/src/ft_extra_keys.c
@@ -12,8 +12,10 @@
#include <cub3d.h>
#include <stdint.h>
+#include <stdio.h>
#include <math.h>
#include <time.h>
+#include <libft.h>
#include <pthread.h>
int
@@ -82,6 +84,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);
return (0);
}
else if (clist->plist.fire == 0 && clist->plist.ammo[w_id] <= 0)