aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_traps.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_draw_traps.c')
-rw-r--r--src/ft_draw_traps.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_draw_traps.c b/src/ft_draw_traps.c
index 42f837b..abde37e 100644
--- a/src/ft_draw_traps.c
+++ b/src/ft_draw_traps.c
@@ -89,7 +89,8 @@ void
while (sprite->x < sprite->drawendx)
{
sprite->tex_x = (int32_t)((sprite->x - (-sprite->spritewidth / 2 +
- sprite->spritescreenx)) * cl->tlist[15].img_w / sprite->spritewidth);
+ sprite->spritescreenx))
+ * cl->tlist[15].img_w / sprite->spritewidth);
sprite->y = sprite->drawstarty;
while (sprite->y < sprite->drawendy)
{
@@ -97,12 +98,11 @@ void
sprite->spriteheight * 128;
sprite->tex_y = ((d * cl->tlist[15].img_h / 2) /
sprite->spriteheight) / 128;
- if (sprite->transformy > 0 && cl->tlist[15].ptr[sprite->tex_x * 4 + 4 *
+ if (sprite->transformy > 0
+ && cl->tlist[15].ptr[sprite->tex_x * 4 + 4 *
cl->tlist[15].img_h * sprite->tex_y]
&& cl->rlist.wall_dist_tab[sprite->x] > sprite->transformy)
- {
ft_put_trap(sprite, cl);
- }
sprite->y++;
}
sprite->x++;