diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-31 20:56:21 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-31 20:56:21 +0200 |
commit | a6d99a2fa6387d3e5c8bb8f4f66a2371f341fe93 (patch) | |
tree | e285e19413ad572b984dc78e2dc56ee728fe9379 /src/ft_draw_sprite.c | |
parent | Better sword firing image (diff) | |
download | 42-cub3d-a6d99a2fa6387d3e5c8bb8f4f66a2371f341fe93.tar.gz 42-cub3d-a6d99a2fa6387d3e5c8bb8f4f66a2371f341fe93.tar.bz2 42-cub3d-a6d99a2fa6387d3e5c8bb8f4f66a2371f341fe93.tar.xz 42-cub3d-a6d99a2fa6387d3e5c8bb8f4f66a2371f341fe93.tar.zst 42-cub3d-a6d99a2fa6387d3e5c8bb8f4f66a2371f341fe93.zip |
Alright alright
Diffstat (limited to '')
-rw-r--r-- | src/ft_draw_sprite.c | 3 |
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 + |