norme: fixed a line that was too long

This commit is contained in:
Theo Champion 2025-09-10 15:03:55 +02:00
parent 5591ebd937
commit ecb99e4840

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/31 13:17:39 by kcolin #+# #+# */
/* Updated: 2025/09/10 14:57:32 by tchampio ### ########.fr */
/* Updated: 2025/09/10 15:03:17 by tchampio ### ########.fr */
/* */
/* ************************************************************************** */
@ -66,7 +66,8 @@ static int get_color(t_cub3d_data *data, t_ray *ray, int tex_y)
tex_x = TEXTURE_SIZE - tex_x - 1;
dir = get_cardinal(ray);
if (ft_strchr("2345678", data->map->map[ray->map_y][ray->map_x]))
return (my_mlx_pixel_get(get_right_barricade(data, data->map->map[ray->map_y][ray->map_x]), tex_x, tex_y));
return (my_mlx_pixel_get(get_right_barricade(data,
data->map->map[ray->map_y][ray->map_x]), tex_x, tex_y));
if (dir == NORTH)
texture = data->no_texture;
else if (dir == SOUTH)