diff options
Diffstat (limited to 'parse/parse_floor_color.c')
| -rw-r--r-- | parse/parse_floor_color.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/parse/parse_floor_color.c b/parse/parse_floor_color.c deleted file mode 100644 index ab16bd9..0000000 --- a/parse/parse_floor_color.c +++ /dev/null @@ -1,27 +0,0 @@ -/* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* parse_floor_color.c :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* Created: 2019/11/15 09:29:32 by cacharle #+# #+# */ -/* Updated: 2019/11/18 17:23:26 by cacharle ### ########.fr */ -/* */ -/* ************************************************************************** */ - -#include "cub3d.h" - -t_bool parse_floor_color(t_parsing *parsing, char *line) -{ - line++; - if ((parsing->floor_color.rgb.r = ft_atoi(line)) > 255) - return (FALSE); - line = ft_strchr(line, ',') + 1; - if ((parsing->floor_color.rgb.g = ft_atoi(line)) > 255) - return (FALSE); - line = ft_strchr(line, ',') + 1; - if ((parsing->floor_color.rgb.b = ft_atoi(line)) > 255) - return (FALSE); - return (TRUE); -} |
