diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-01-24 00:09:11 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-01-24 00:09:11 +0100 |
commit | fbd69257b509d3374573282ee08f5d9fc9ed4095 (patch) | |
tree | 28b9ab225e910a8ae279623b08152e310431242c /src/ft_parse_map.c | |
parent | Nice and working (diff) | |
download | 42-cub3d-fbd69257b509d3374573282ee08f5d9fc9ed4095.tar.gz 42-cub3d-fbd69257b509d3374573282ee08f5d9fc9ed4095.tar.bz2 42-cub3d-fbd69257b509d3374573282ee08f5d9fc9ed4095.tar.xz 42-cub3d-fbd69257b509d3374573282ee08f5d9fc9ed4095.tar.zst 42-cub3d-fbd69257b509d3374573282ee08f5d9fc9ed4095.zip |
It ain't much but it's honest work
Diffstat (limited to 'src/ft_parse_map.c')
-rw-r--r-- | src/ft_parse_map.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c index d3d1f53..2fa5741 100644 --- a/src/ft_parse_map.c +++ b/src/ft_parse_map.c @@ -2,6 +2,7 @@ #include <cub3d.h> #include <stdlib.h> #include <fcntl.h> +#include <unistd.h> /* ** I can't close @@ -16,7 +17,8 @@ ft_parse_map(t_win *wlist, t_cub *clist, const char *map_path) fd = open(map_path, O_RDONLY); if (fd < 0) { - ft_printf("\033[31;1mNo map\033[0m\n"); + ft_dprintf(STDERR_FILENO, "Error\n"); + ft_dprintf(STDERR_FILENO, "\033[31;1mNo map\033[0m\n"); ft_exit(2); } ft_get_res(fd, wlist); |