diff --git a/srcs/cast_ray/cast_ray.c b/srcs/cast_ray/cast_ray.c index 153254f..3910bb1 100644 --- a/srcs/cast_ray/cast_ray.c +++ b/srcs/cast_ray/cast_ray.c @@ -1,13 +1,13 @@ /* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* cast_ray.c :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: apommier +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* Created: 2022/05/04 18:08:14 by apommier #+# #+# */ -/* Updated: 2022/05/20 15:48:23 by apommier ### ########.fr */ -/* */ +/* */ +/* ::: :::::::: */ +/* cast_ray.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: apommier +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/06/15 23:56:03 by apommier #+# #+# */ +/* Updated: 2022/06/15 23:56:06 by apommier ### ########.fr */ +/* */ /* ************************************************************************** */ #include "../../includes/Cub3D.h" diff --git a/srcs/utils/cub_utils.c b/srcs/utils/cub_utils.c index e52ed2e..0ded33e 100644 --- a/srcs/utils/cub_utils.c +++ b/srcs/utils/cub_utils.c @@ -6,7 +6,7 @@ /* By: apommier +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/06/15 18:48:45 by apommier #+# #+# */ -/* Updated: 2022/06/15 23:22:14 by apommier ### ########.fr */ +/* Updated: 2022/06/15 23:41:56 by apommier ### ########.fr */ /* */ /* ************************************************************************** */ @@ -32,21 +32,20 @@ void ft_error(char *error_msg) exit(1); } -void ft_exit(char *str, t_data *img) +void ft_exit(char *str, t_data *img) { ft_putstr_fd(str, 2); - quit_game(img); } -void check_dir(char *path, t_data *img) +void check_dir(char *path, t_data *img) { - int fd; + int fd; fd = open(path, O_DIRECTORY); - if (fd >= 0) - { - close(fd); - ft_exit("Error\nPath is a directory and not a file\n", img); - } -} \ No newline at end of file + if (fd >= 0) + { + close(fd); + ft_exit("Error\nPath is a directory and not a file\n", img); + } +}