aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_sfx_new_level.c
blob: 05e905962441093a30ded191359454533706b3fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   ft_sfx_new_level.c                                 :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: rbousset <marvin@42.fr>                    +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/02/24 17:17:54 by rbousset          #+#    #+#             */
/*   Updated: 2020/02/24 17:17:56 by rbousset         ###   ########lyon.fr   */
/*                                                                            */
/* ************************************************************************** */

#include <cub3d.h>
#include <unistd.h>

void
	ft_sfx_new_level(t_cub *cl)
{
	cl->sfx.new_lvl_pid = fork();
	if (cl->sfx.new_lvl_pid == 0)
	{
		execve(*(cl->sfx.new_lvl + 0), cl->sfx.new_lvl, cl->envp);
	}
}