mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 09:58:09 +01:00
feat: Made payable doors
This commit is contained in:
parent
13b1f7a88c
commit
351e4bb679
7 changed files with 67 additions and 8 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue