From a2ed84f6da6b5ca2226e2bbc5cc65e142810d8c6 Mon Sep 17 00:00:00 2001
From: JozanLeClerc <bousset.rudy@gmail.com>
Date: Fri, 13 Mar 2020 05:39:06 +0100
Subject: New sfx, clean exit

---
 inc/cub3d.h         | 1 +
 inc/cub3d_structs.h | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

(limited to 'inc')

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];
-- 
cgit v1.2.3