From a383bde7d29293919eb635aeb14760a7a55e12b3 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 14 Mar 2020 01:06:59 +0100 Subject: Removed footsteps, in progress --- src/ft_sfx_footstep.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 src/ft_sfx_footstep.c (limited to 'src/ft_sfx_footstep.c') diff --git a/src/ft_sfx_footstep.c b/src/ft_sfx_footstep.c deleted file mode 100644 index e629a7b..0000000 --- a/src/ft_sfx_footstep.c +++ /dev/null @@ -1,36 +0,0 @@ -/* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* ft_sfx_trap.c :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: rbousset +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* Created: 2020/02/24 17:17:54 by rbousset #+# #+# */ -/* Updated: 2020/02/24 17:17:56 by rbousset ### ########lyon.fr */ -/* */ -/* ************************************************************************** */ - -#include -#include -#include -#include -#include -#include - -void - ft_sfx_footstep(t_cub *cl) -{ - static uint8_t ref = 0; - - cl->sfx.footstep_pid = fork(); - if (cl->sfx.footstep_pid == 0) - { - ref = (ref > 201) ? (0) : (ref + 1); - if (ref % 2) - execve(*(cl->sfx.footstep_one + 0), - cl->sfx.footstep_one, cl->envp); - else - execve(*(cl->sfx.footstep_two + 0), - cl->sfx.footstep_two, cl->envp); - } -} -- cgit v1.2.3