aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_sprite.c
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2020-03-11 20:42:12 +0100
committersalaaad2 <arthurdurant263@gmail.com>2020-03-11 20:42:12 +0100
commitca5b3689894013365f617cb5513372e6031e8ae7 (patch)
tree76fcd88c754cb29aaab3597eacc68b68eec15343 /src/ft_get_sprite.c
parentget merged (diff)
download42-cub3d-ca5b3689894013365f617cb5513372e6031e8ae7.tar.gz
42-cub3d-ca5b3689894013365f617cb5513372e6031e8ae7.tar.bz2
42-cub3d-ca5b3689894013365f617cb5513372e6031e8ae7.tar.xz
42-cub3d-ca5b3689894013365f617cb5513372e6031e8ae7.tar.zst
42-cub3d-ca5b3689894013365f617cb5513372e6031e8ae7.zip
gang_gang
Diffstat (limited to 'src/ft_get_sprite.c')
-rw-r--r--src/ft_get_sprite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_get_sprite.c b/src/ft_get_sprite.c
index c288b67..68c4f75 100644
--- a/src/ft_get_sprite.c
+++ b/src/ft_get_sprite.c
@@ -25,7 +25,6 @@ void
x = 1;
y = 1;
i = 0;
- clist->mlist.sprite_var++;
while (clist->mlist.map[y])
{
while (clist->mlist.map[y][x])
@@ -43,6 +42,7 @@ void
x = 1;
y++;
}
+ clist->mlist.sprite_var += (clist->sprites[s_n][i].s_pos_x != 0);
}
void