From 38fa236364fe7268ed2a6cf7745d92b3df8465c7 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 25 Jan 2020 19:28:42 +0100 Subject: Pretty bav --- src/ft_drawsquare.c | 3 ++- src/ft_parse_map.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ft_drawsquare.c b/src/ft_drawsquare.c index 78ebd8c..df055fa 100644 --- a/src/ft_drawsquare.c +++ b/src/ft_drawsquare.c @@ -13,7 +13,8 @@ ft_drawsquare(t_win *wlist, int a, int b) { while (y > b - 40) { - mlx_pixel_put(wlist->wlx, wlist->winptr, x, y, 0255255255); + mlx_pixel_put(wlist->wlx, wlist->winptr, x, y, + wlist->clist->f_color); y--; } y = b; diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c index c7081b1..32ba5d8 100644 --- a/src/ft_parse_map.c +++ b/src/ft_parse_map.c @@ -55,4 +55,5 @@ ft_parse_map(const char *map_path, t_win *wlist) return ; ft_get_colors(fd, wlist); ft_print_list(wlist); + ft_check_empty_line(fd, 10, wlist); } -- cgit v1.2.3