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> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* 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 */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -16,14 +16,15 @@
|
|||
bool perform_color_checks(int *color, char *strcolor, t_mapdata *map)
|
||||
{
|
||||
size_t i;
|
||||
int colorvalue;
|
||||
int colorvalue;
|
||||
|
||||
i = 0;
|
||||
while (i < ft_strlen(strcolor) - 1)
|
||||
{
|
||||
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);
|
||||
}
|
||||
i++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue