mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 01:48:08 +01:00
norm: fixed all the norme issues in the perform_color_checks() function
This commit is contained in:
parent
c495547a70
commit
4b2f671107
1 changed files with 5 additions and 4 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
|
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/06/21 19:35:43 by tchampio #+# #+# */
|
/* Created: 2025/06/21 19:35:43 by tchampio #+# #+# */
|
||||||
/* Updated: 2025/07/21 15:28:36 by kcolin ### ########.fr */
|
/* Updated: 2025/07/22 12:11:28 by tchampio ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -23,7 +23,8 @@ bool perform_color_checks(int *color, char *strcolor, t_mapdata *map)
|
||||||
{
|
{
|
||||||
if (!ft_isdigit(strcolor[i]))
|
if (!ft_isdigit(strcolor[i]))
|
||||||
{
|
{
|
||||||
ft_strlcpy(map->error, "invalid characters in color definition", 1024);
|
ft_strlcpy(map->error, "invalid characters in color definition",
|
||||||
|
1024);
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue