diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-30 15:02:11 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-30 15:02:11 +0200 |
commit | 0b8809204e2727e237c692559c49bc85918f17ad (patch) | |
tree | 0946e6e119ca7de2211fb75bae123886d86eb6be /src | |
parent | Timings fix (diff) | |
download | 42-cub3d-0b8809204e2727e237c692559c49bc85918f17ad.tar.gz 42-cub3d-0b8809204e2727e237c692559c49bc85918f17ad.tar.bz2 42-cub3d-0b8809204e2727e237c692559c49bc85918f17ad.tar.xz 42-cub3d-0b8809204e2727e237c692559c49bc85918f17ad.tar.zst 42-cub3d-0b8809204e2727e237c692559c49bc85918f17ad.zip |
Huge bug fix
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_draw_sprite_extra.c | 1 | ||||
-rw-r--r-- | src/ft_get_sprite_spawns.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_draw_sprite_extra.c b/src/ft_draw_sprite_extra.c index c201566..3f0f474 100644 --- a/src/ft_draw_sprite_extra.c +++ b/src/ft_draw_sprite_extra.c @@ -47,6 +47,7 @@ static void (1 + sprite->transformx / sprite->transformy); } +#include <libft.h> void ft_calc_sprite(t_cub *cl) { diff --git a/src/ft_get_sprite_spawns.c b/src/ft_get_sprite_spawns.c index 9329c51..d65a17d 100644 --- a/src/ft_get_sprite_spawns.c +++ b/src/ft_get_sprite_spawns.c @@ -118,8 +118,8 @@ void clist->sprites[0][i].s_pos_x = x; clist->sprites[0][i].s_pos_y = y; i++; - ft_get_next_sprite(clist, 1, '3', 0); } + ft_get_next_sprite(clist, 1, '3', 0); x++; } x = 1; |