aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-30 15:02:11 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-30 15:02:11 +0200
commit0b8809204e2727e237c692559c49bc85918f17ad (patch)
tree0946e6e119ca7de2211fb75bae123886d86eb6be
parentTimings fix (diff)
download42-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 '')
-rw-r--r--map/map_one.cub2
-rw-r--r--src/ft_draw_sprite_extra.c1
-rw-r--r--src/ft_get_sprite_spawns.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/map/map_one.cub b/map/map_one.cub
index 16c0ec0..83c6a37 100644
--- a/map/map_one.cub
+++ b/map/map_one.cub
@@ -27,7 +27,7 @@ SH 2
1000000000000000001
111111111111000000000005000001
10000000000000000T0T0T00000001
-100000000000020304000000T0T001
+100000000000000304000000T0T001
100000000000000000000000000001
1001000000T0000000000000000001
10110+0+0111000001110000000111
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;