diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2020-03-11 20:42:12 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2020-03-11 20:42:12 +0100 |
commit | ca5b3689894013365f617cb5513372e6031e8ae7 (patch) | |
tree | 76fcd88c754cb29aaab3597eacc68b68eec15343 /src/ft_get_sprite.c | |
parent | get merged (diff) | |
download | 42-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.c | 2 |
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 |