aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_sprite.c
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2020-03-05 22:01:22 +0100
committersalaaad2 <arthurdurant263@gmail.com>2020-03-05 22:01:22 +0100
commit82f823ceb63d76ce052db3bca74842fe37394eb4 (patch)
tree8e4f3fc4b36027560dad63da91f91f0fc9db2dde /src/ft_draw_sprite.c
parentdebugging... (diff)
download42-cub3d-82f823ceb63d76ce052db3bca74842fe37394eb4.tar.gz
42-cub3d-82f823ceb63d76ce052db3bca74842fe37394eb4.tar.bz2
42-cub3d-82f823ceb63d76ce052db3bca74842fe37394eb4.tar.xz
42-cub3d-82f823ceb63d76ce052db3bca74842fe37394eb4.tar.zst
42-cub3d-82f823ceb63d76ce052db3bca74842fe37394eb4.zip
fuck
Diffstat (limited to '')
-rw-r--r--src/ft_draw_sprite.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ft_draw_sprite.c b/src/ft_draw_sprite.c
index 0430e2f..82984d2 100644
--- a/src/ft_draw_sprite.c
+++ b/src/ft_draw_sprite.c
@@ -38,9 +38,7 @@ void
sprite->tex_y = ((d * cl->tlist[4].img_h / 2) /
sprite->spriteheight) / 128;
if (cl->tlist[4].ptr[sprite->tex_x * 4 + 4 * cl->tlist[4].img_h * sprite->tex_y])
- {
- cl->img.ptr[sprite->x * 4 + (sprite->y *
- cl->img.sizeline)] =
+ {cl->img.ptr[sprite->x * 4 + (sprite->y * cl->img.sizeline)] =
cl->tlist[4].ptr[sprite->tex_x * 4 + 4 * cl->tlist[4].img_h * sprite->tex_y];
cl->img.ptr[sprite->x * 4 + (sprite->y *
cl->img.sizeline) + 1] =