From 49750331b64cc7ecf77836bced39363bedc945a7 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Mon, 9 Mar 2020 20:28:09 +0100 Subject: gang_2 --- src/ft_draw_sprite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ft_draw_sprite.c b/src/ft_draw_sprite.c index 203c48d..faeec2b 100644 --- a/src/ft_draw_sprite.c +++ b/src/ft_draw_sprite.c @@ -97,7 +97,7 @@ void sprite->spriteheight * 128; sprite->tex_y = ((d * cl->tlist[4].img_h / 2) / sprite->spriteheight) / 128; - if (cl->tlist[4].ptr[sprite->tex_x * 4 + 4 * + if (sprite->transformy > 0 && cl->tlist[4].ptr[sprite->tex_x * 4 + 4 * cl->tlist[4].img_h * sprite->tex_y] && cl->rlist.wall_dist_tab[sprite->x] > sprite->transformy) { -- cgit v1.2.3