feat: Made payable doors

This commit is contained in:
Theo Champion 2025-10-01 14:13:08 +02:00
parent 13b1f7a88c
commit 351e4bb679
7 changed files with 67 additions and 8 deletions

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/08/06 11:25:05 by kcolin #+# #+# */
/* Updated: 2025/10/01 13:43:22 by tchampio ### ########.fr */
/* Updated: 2025/10/01 14:11:11 by tchampio ### ########.fr */
/* */
/* ************************************************************************** */
@ -32,7 +32,7 @@ bool blocks_movement(t_mapdata *data, int x, int y)
bool blocks_view(t_mapdata *data, int x, int y)
{
if (out_of_bounds(data, x, y) || ft_strchr("12345678d", data->map[y][x]))
if (out_of_bounds(data, x, y) || ft_strchr("12345678dP", data->map[y][x]))
return (true);
return (false);
}