aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-13 05:39:06 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-13 05:39:06 +0100
commita2ed84f6da6b5ca2226e2bbc5cc65e142810d8c6 (patch)
tree6fc0f9c1701cd729d65ca110c3c9a089c321a694 /inc
parentI fucking love it (diff)
download42-cub3d-a2ed84f6da6b5ca2226e2bbc5cc65e142810d8c6.tar.gz
42-cub3d-a2ed84f6da6b5ca2226e2bbc5cc65e142810d8c6.tar.bz2
42-cub3d-a2ed84f6da6b5ca2226e2bbc5cc65e142810d8c6.tar.xz
42-cub3d-a2ed84f6da6b5ca2226e2bbc5cc65e142810d8c6.tar.zst
42-cub3d-a2ed84f6da6b5ca2226e2bbc5cc65e142810d8c6.zip
New sfx, clean exit
Diffstat (limited to '')
-rw-r--r--inc/cub3d.h1
-rw-r--r--inc/cub3d_structs.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index e9a6ddb..3cea604 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -149,6 +149,7 @@ void ft_floor_cast_inits(uint16_t y, t_ray *rl, t_cub *cl);
*/
void ft_sfx_trap(t_cub *cl);
+void ft_sfx_death(t_cub *cl);
/*
** ====== OTHER ======
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index fb0fe15..2f10f29 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -230,8 +230,9 @@ typedef struct s_cub
char errmsg[64];
int32_t key_input[5];
pid_t mpid;
- pid_t trap_pid;
+ pid_t death_pid;
pid_t pain_pid;
+ pid_t trap_pid;
int (*key_ptr[6])(struct s_cub*);
int8_t (*get_ptr[14])(char**, struct s_cub*);
char ref[22][3];