aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_sprite_spawns.c
diff options
context:
space:
mode:
authorsalad <salad@saladesk.desktop>2020-03-23 18:05:40 +0100
committersalad <salad@saladesk.desktop>2020-03-23 18:05:40 +0100
commitc4085f097c743f11d2bfa20462818899831a88b8 (patch)
treed7e3e9c2187c3d8524694e0e4a4e7ac7c6c42c5d /src/ft_get_sprite_spawns.c
parentabout to norm this mans whole career (diff)
download42-cub3d-c4085f097c743f11d2bfa20462818899831a88b8.tar.gz
42-cub3d-c4085f097c743f11d2bfa20462818899831a88b8.tar.bz2
42-cub3d-c4085f097c743f11d2bfa20462818899831a88b8.tar.xz
42-cub3d-c4085f097c743f11d2bfa20462818899831a88b8.tar.zst
42-cub3d-c4085f097c743f11d2bfa20462818899831a88b8.zip
normed
Diffstat (limited to 'src/ft_get_sprite_spawns.c')
-rw-r--r--src/ft_get_sprite_spawns.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ft_get_sprite_spawns.c b/src/ft_get_sprite_spawns.c
index b00ef97..c2db153 100644
--- a/src/ft_get_sprite_spawns.c
+++ b/src/ft_get_sprite_spawns.c
@@ -23,7 +23,7 @@ void
y = 0;
i = 0;
- clist->mlist.sprite_nbr[s_n] = 0;
+ clist->mlist.sprite_nbr[s_n] = 0;
while (clist->mlist.map[++y])
{
while (clist->mlist.map[y][++x])
@@ -39,7 +39,7 @@ void
x = 0;
}
if (clist->sprites[s_n][(i - 1 < 0) ? (0) : (i - 1)].s_pos_x != 0
- && s_n + 1 < 7)
+ && s_n + 1 < 7)
{
ft_get_next_sprite(clist, s_n + 1, c + 1, 0);
}
@@ -55,7 +55,7 @@ void
x = 1;
y = 1;
i = 0;
- clist->mlist.sprite_nbr[0] = 0;
+ clist->mlist.sprite_nbr[0] = 0;
while (clist->mlist.map[y])
{
while (clist->mlist.map[y][x])