aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_sprite.c
diff options
context:
space:
mode:
authorsalaaad2 <arthudurant263@gmail.com>2020-02-24 23:14:16 +0100
committersalaaad2 <arthudurant263@gmail.com>2020-02-24 23:14:16 +0100
commit3363be36b7ffe90fc335e07ebb1dae14366216e8 (patch)
tree45378a3c0c54dde26d9a47ea49d5ca20489bfd99 /src/ft_draw_sprite.c
parentfound 2 infinit loops hehe (diff)
download42-cub3d-3363be36b7ffe90fc335e07ebb1dae14366216e8.tar.gz
42-cub3d-3363be36b7ffe90fc335e07ebb1dae14366216e8.tar.bz2
42-cub3d-3363be36b7ffe90fc335e07ebb1dae14366216e8.tar.xz
42-cub3d-3363be36b7ffe90fc335e07ebb1dae14366216e8.tar.zst
42-cub3d-3363be36b7ffe90fc335e07ebb1dae14366216e8.zip
gang
Diffstat (limited to 'src/ft_draw_sprite.c')
-rw-r--r--src/ft_draw_sprite.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ft_draw_sprite.c b/src/ft_draw_sprite.c
index a3371b4..7e7114f 100644
--- a/src/ft_draw_sprite.c
+++ b/src/ft_draw_sprite.c
@@ -44,9 +44,9 @@ void
tex_y = ((d * cl->tlist[4].img_h) / cl->sp_list.s_h) / 256;
if (*(cl->tlist[4].ptr + tex_x + tex_y * cl->tlist[4].sizeline / 4))
{
- /*cl->img.ptr[tex_x * 4 + (cl->img.sizeline * tex_y)] =*/
- /*(char)cl->tlist[4].ptr[cl->tlist[4].tex_x * 4 + 4 **/
- /*cl->tlist[4].img_h * tex_y];*/
+ cl->img.ptr[tex_x * 4 + (cl->img.sizeline * tex_y)] =
+ (char)cl->tlist[4].ptr[cl->tlist[4].tex_x * 4 + 4 *
+ cl->tlist[4].img_h * tex_y];
/*puts("qwe");*/
}
ity++;