Fix: removed the t_img texture and left the t_texture instead.

This commit is contained in:
B.Goulard 2024-12-17 17:28:51 +01:00
parent eda859f200
commit 7f1091b721
9 changed files with 35 additions and 40 deletions

View file

@ -6,7 +6,7 @@
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/16 14:46:04 by bgoulard #+# #+# */
/* Updated: 2024/12/16 14:46:14 by bgoulard ### ########.fr */
/* Updated: 2024/12/17 17:23:54 by bgoulard ### ########.fr */
/* */
/* ************************************************************************** */
@ -15,11 +15,11 @@
t_texture *get_texture(int side, t_ipoint step, t_info *data)
{
if (side == 0 && step.x > 0)
return (&data->map.texture_[0]);
return (&data->map.texture[0]);
else if (side == 0 && step.x < 0)
return (&data->map.texture_[1]);
return (&data->map.texture[1]);
else if (side == 1 && step.y > 0)
return (&data->map.texture_[2]);
return (&data->map.texture[2]);
else
return (&data->map.texture_[3]);
return (&data->map.texture[3]);
}