From a6d99a2fa6387d3e5c8bb8f4f66a2371f341fe93 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 31 Mar 2020 20:56:21 +0200 Subject: Alright alright --- src/ft_draw_sprite.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ft_draw_sprite.c b/src/ft_draw_sprite.c index 6df35a7..df7e11c 100644 --- a/src/ft_draw_sprite.c +++ b/src/ft_draw_sprite.c @@ -64,7 +64,7 @@ void static void ft_put_sprite(t_sprite *sprite, t_cub *cl) { - float dist; + double dist; t_rgb rgb; if ((dist = sqrt(pow(cl->plist.pos_x - sprite->s_pos_x, 2) @@ -86,6 +86,7 @@ void int32_t d; sprite->x = sprite->drawstartx; + ft_printf("%d\n", sprite->current_sprite); while (sprite->x < sprite->drawendx) { sprite->tex_x = (int32_t)((sprite->x - (-sprite->spritewidth / 2 + -- cgit v1.2.3