aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ft_draw_sprite.c3
1 files changed, 2 insertions, 1 deletions
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 +