/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_get_nlvl_pos.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: joelecle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/28 20:56:25 by joelecle #+# #+# */ /* Updated: 2020/02/28 20:56:26 by joelecle ### ########lyon.fr */ /* */ /* ************************************************************************** */ #include void ft_get_nlvl_pos(t_map *ml) { size_t x; size_t y; x = 1; y = 1; while (ml->map[y]) { while (ml->map[y][x]) { if (ml->map[y][x] == 'L') { ml->nlx = x; ml->nly = y; return ; } x++; } x = 1; y++; } }