aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-30 15:03:51 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-30 15:03:51 +0200
commit2cb3a15a7d55f66ba9f87276bc236f1dddbcbbb3 (patch)
treee6956c9c48316d2cbff545903941efcfb0b0b81b
parentHuge bug fix (diff)
download42-cub3d-2cb3a15a7d55f66ba9f87276bc236f1dddbcbbb3.tar.gz
42-cub3d-2cb3a15a7d55f66ba9f87276bc236f1dddbcbbb3.tar.bz2
42-cub3d-2cb3a15a7d55f66ba9f87276bc236f1dddbcbbb3.tar.xz
42-cub3d-2cb3a15a7d55f66ba9f87276bc236f1dddbcbbb3.tar.zst
42-cub3d-2cb3a15a7d55f66ba9f87276bc236f1dddbcbbb3.zip
Alright
-rw-r--r--map/map_seven.cub2
-rw-r--r--src/ft_get_sprite_spawns.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/map/map_seven.cub b/map/map_seven.cub
index 50592ae..57b2576 100644
--- a/map/map_seven.cub
+++ b/map/map_seven.cub
@@ -23,5 +23,5 @@ C 150,150,150
1000000000000000001
10000000@0000000001
1000000000000000001
-10200000N0000000201
+10000000N0000000001
1111111111111111111
diff --git a/src/ft_get_sprite_spawns.c b/src/ft_get_sprite_spawns.c
index d65a17d..c878341 100644
--- a/src/ft_get_sprite_spawns.c
+++ b/src/ft_get_sprite_spawns.c
@@ -90,8 +90,7 @@ int8_t
x = 0;
}
ft_check_amount(clist, s_n);
- if (/* clist->sprites[s_n][(i - 1 < 0) ? (0) : (i - 1)].s_pos_x != 0
- && */ s_n + 1 <= 7)
+ if (s_n + 1 <= 7)
return (ft_get_next_sprite(clist, s_n + 1, c + 1, 0));
return (ft_other_next_sprite(clist, s_n));
}