Fix: fix hole detection, fix norme mlx_struct.h + load_texture.c + error.c

This commit is contained in:
Baptiste Goulard coderc de lacam 2024-12-20 15:04:48 +01:00
parent 6b11930534
commit c120ee5a5f
9 changed files with 17 additions and 74 deletions

View file

@ -6,7 +6,7 @@
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/01 17:49:12 by bgoulard #+# #+# */
/* Updated: 2024/12/16 09:45:25 by bgoulard ### ########.fr */
/* Updated: 2024/12/20 14:49:43 by bgoulard ### ########.fr */
/* */
/* ************************************************************************** */
@ -33,6 +33,8 @@ bool flood_fill(t_tile *tiles, t_ipoint pos, t_ipoint maxs)
current = c3_get_cell(tiles, maxs, pos);
if (current->tile_visited == true || current->tile_type == WALL)
return (true);
if (current->tile_type == NONE)
return (false);
current->tile_visited = true;
i = 0;
while (i != (sizeof(to_check) / sizeof(to_check[0])))