aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_traps_extra.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 20:07:20 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 20:07:20 +0100
commit3ce74f6396bf76650853aba3bfc307847adb0bba (patch)
tree57f6040f2d1fd1e8ef59f20c3aa4c2157f404b5c /src/ft_draw_traps_extra.c
parentReady to merge (diff)
parentcangelog (diff)
download42-cub3d-3ce74f6396bf76650853aba3bfc307847adb0bba.tar.gz
42-cub3d-3ce74f6396bf76650853aba3bfc307847adb0bba.tar.bz2
42-cub3d-3ce74f6396bf76650853aba3bfc307847adb0bba.tar.xz
42-cub3d-3ce74f6396bf76650853aba3bfc307847adb0bba.tar.zst
42-cub3d-3ce74f6396bf76650853aba3bfc307847adb0bba.zip
Merge branch 'better_sprites'
Diffstat (limited to 'src/ft_draw_traps_extra.c')
-rw-r--r--src/ft_draw_traps_extra.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ft_draw_traps_extra.c b/src/ft_draw_traps_extra.c
index a2fd0ab..c524190 100644
--- a/src/ft_draw_traps_extra.c
+++ b/src/ft_draw_traps_extra.c
@@ -36,8 +36,7 @@ void
+ cl->plist.plane_x * sprite.spritey);
sprite.spritescreenx = (int)(cl->wlist.x_size / 2) *
(1 + sprite.transformx / sprite.transformy);
- ft_sprite_height(cl, &sprite);
- ft_sprite_width(cl, &sprite);
+ ft_sprite_h_w(cl, &sprite);
ft_draw_traps(cl, &sprite);
i++;
}