/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_check_map_line.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rbousset +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 17:28:34 by rbousset #+# #+# */ /* Updated: 2020/02/14 17:28:37 by rbousset ### ########lyon.fr */ /* */ /* ************************************************************************** */ #include #include #include #include void ft_get_topsp(char c, t_cub *clist) { int8_t x; if ((x = ft_strlchr(FT_CHRST_SPRITES, c)) > 0) { if ((x + 2) > clist->mlist.topsp) { clist->mlist.topsp = x + 2; } } }