aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-01 17:43:25 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-01 17:43:25 +0200
commit2e4272268bf56f1b2dc7541703cc0526290a026a (patch)
tree577468592281dfd7b9e89170007465111e684b86 /src
parentOptimization (diff)
download42-cub3d-2e4272268bf56f1b2dc7541703cc0526290a026a.tar.gz
42-cub3d-2e4272268bf56f1b2dc7541703cc0526290a026a.tar.bz2
42-cub3d-2e4272268bf56f1b2dc7541703cc0526290a026a.tar.xz
42-cub3d-2e4272268bf56f1b2dc7541703cc0526290a026a.tar.zst
42-cub3d-2e4272268bf56f1b2dc7541703cc0526290a026a.zip
Still segv
Diffstat (limited to 'src')
-rw-r--r--src/ft_draw_sprite.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ft_draw_sprite.c b/src/ft_draw_sprite.c
index a17ab98..a127e31 100644
--- a/src/ft_draw_sprite.c
+++ b/src/ft_draw_sprite.c
@@ -98,8 +98,7 @@ void
sprite->spriteheight * 128;
sprite->tex_y = ((d * cl->tlist[sprite->current_sprite].img_h / 2) /
sprite->spriteheight) / 128;
- if (
- sprite->transformy > 0 &&
+ if (sprite->transformy > 0 &&
cl->tlist[sprite->current_sprite].ptr[sprite->tex_x * 4 + 4 *
cl->tlist[sprite->current_sprite].img_w * sprite->tex_y]
&& cl->rlist.wall_dist_tab[sprite->x] > sprite->transformy)