From 15e4ca8491c9b2872b30cb1522f72920514a62f1 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 11 Mar 2020 02:03:18 +0100 Subject: ft_calc_sprite in a better location, still sliding like a champ --- src/ft_draw_scene.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/ft_draw_scene.c') diff --git a/src/ft_draw_scene.c b/src/ft_draw_scene.c index 2cfa3f4..4d15df2 100644 --- a/src/ft_draw_scene.c +++ b/src/ft_draw_scene.c @@ -52,7 +52,6 @@ void } if (clist->mlist.isskybox) ft_draw_skybox(clist); - ft_calc_sprite(clist); mlx_put_image_to_window(clist->wlist.wlx, clist->wlist.winptr, clist->img.img, 0, 0); if (clist->ishud && clist->mlist.isnlvl) @@ -73,7 +72,6 @@ void clist->img.ptr = mlx_get_data_addr(clist->img.img, &clist->img.bpp, &clist->img.sizeline, &clist->img.endian); ft_castray(clist); - ft_calc_sprite(clist); if (ft_save_to_bmp(clist) < 0) ft_error(FT_RET_BMP_ERR, FT_ERR_WR_BMP, clist); mlx_destroy_image(clist->wlist.wlx, clist->img.img); -- cgit v1.2.3