diff --git a/builds/draw.o b/builds/draw.o deleted file mode 100644 index ecfd7ec..0000000 Binary files a/builds/draw.o and /dev/null differ diff --git a/builds/fdf.o b/builds/fdf.o deleted file mode 100644 index 5a19fcc..0000000 Binary files a/builds/fdf.o and /dev/null differ diff --git a/builds/keypress.o b/builds/keypress.o deleted file mode 100644 index 295162a..0000000 Binary files a/builds/keypress.o and /dev/null differ diff --git a/builds/modifs.o b/builds/modifs.o deleted file mode 100644 index a290763..0000000 Binary files a/builds/modifs.o and /dev/null differ diff --git a/builds/parse.o b/builds/parse.o deleted file mode 100644 index 9b428ae..0000000 Binary files a/builds/parse.o and /dev/null differ diff --git a/fdf b/fdf deleted file mode 100755 index f644383..0000000 Binary files a/fdf and /dev/null differ diff --git a/srcs/fdf.c b/srcs/fdf.c index 41ff305..26a7bd8 100644 --- a/srcs/fdf.c +++ b/srcs/fdf.c @@ -26,7 +26,7 @@ void init_server(t_fdf *fdf) if (!fdf->mlx_ptr) shut_down(fdf); fdf->win_ptr = mlx_new_window(fdf->mlx_ptr, fdf->win_size_x, - fdf->win_size_y, "test"); + fdf->win_size_y, "fdf"); if (!fdf->win_ptr) shut_down(fdf); fdf->img_ptr = mlx_new_image(fdf->mlx_ptr, fdf->img_size_x, diff --git a/srcs/parse.c b/srcs/parse.c index 08f1586..c31e9de 100644 --- a/srcs/parse.c +++ b/srcs/parse.c @@ -14,6 +14,8 @@ int **split_to_map(t_fdf *fdf, char *raw) int j; int **map; + if (fdf->map_height == 0) + shut_down(fdf); map = ft_calloc(fdf->map_height, sizeof(map)); if (!map) shut_down(fdf);