diff options
Diffstat (limited to 'src/ft_warp_level.c')
-rw-r--r-- | src/ft_warp_level.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/ft_warp_level.c b/src/ft_warp_level.c index 8739550..3d8a732 100644 --- a/src/ft_warp_level.c +++ b/src/ft_warp_level.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_warp_level.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/28 20:54:28 by rbousset #+# #+# */ +/* Updated: 2020/02/28 20:54:29 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + #include <libft.h> #include <cub3d.h> #include <stdlib.h> @@ -44,8 +56,8 @@ int8_t if ((uint32_t)cl->plist->pos_x == cl->mlist->nlx && (uint32_t)cl->plist->pos_y == cl->mlist->nly) { - if (!(next_path = (char *)malloc - ((ft_strlen(cl->mlist->nlevel_path) + 1) * sizeof(char)))) + if (!(next_path = (char *)malloc((ft_strlen( + cl->mlist->nlevel_path) + 1) * sizeof(char)))) return (-1); ft_sprintf(next_path, "%s", cl->mlist->nlevel_path); ft_del_map(cl->mlist); |