#include #include void ft_drawmap(t_cub *clist) { int x; int y; (void)clist; x = 0; y = 0; while (clist->map[x]) { while (clist->map[x][y]) { 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; x++; } }