aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_warp_level.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-02-28 20:56:59 +0100
committerRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-02-28 20:56:59 +0100
commita126dec6a3ff78a118c09138af27a2f48f13adf8 (patch)
tree05c9d52c14d865543d9f4d87a9d73dee6541a0ff /src/ft_warp_level.c
parentRight but not perfect (diff)
download42-cub3d-a126dec6a3ff78a118c09138af27a2f48f13adf8.tar.gz
42-cub3d-a126dec6a3ff78a118c09138af27a2f48f13adf8.tar.bz2
42-cub3d-a126dec6a3ff78a118c09138af27a2f48f13adf8.tar.xz
42-cub3d-a126dec6a3ff78a118c09138af27a2f48f13adf8.tar.zst
42-cub3d-a126dec6a3ff78a118c09138af27a2f48f13adf8.zip
Normed
Diffstat (limited to 'src/ft_warp_level.c')
-rw-r--r--src/ft_warp_level.c16
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);