From ec44882bde1d3004eb66f7c07a14950af5ef5bcf Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Mon, 27 Jan 2020 20:25:06 +0100 Subject: Even nicer --- src/ft_drawmap.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ft_drawmap.c') diff --git a/src/ft_drawmap.c b/src/ft_drawmap.c index c0854e0..3466df0 100644 --- a/src/ft_drawmap.c +++ b/src/ft_drawmap.c @@ -17,6 +17,9 @@ ft_drawmap(t_cub *clist) if (clist->map[x][y] == '1') ft_drawsquare(40 + (y * 41), 40 + (x * 41), clist->f_color, clist); + if (clist->map[x][y] == '0') + ft_drawsquare(40 + (y * 41), 40 + (x * 41), + clist->c_color, clist); y++; } y = 0; -- cgit v1.2.3