mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 09:58:09 +01:00
norme: fixed a line that was too long
This commit is contained in:
parent
5591ebd937
commit
ecb99e4840
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue