diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2020-02-28 15:30:53 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2020-02-28 15:30:53 +0100 |
commit | 8f852afcfa170070b6f0ac2e321546990d87e401 (patch) | |
tree | c75ea70c8de7d3a7e349ae8d10adec1eab5917ae /src/ft_draw_sprite.c | |
parent | lets GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO... (diff) | |
download | 42-cub3d-8f852afcfa170070b6f0ac2e321546990d87e401.tar.gz 42-cub3d-8f852afcfa170070b6f0ac2e321546990d87e401.tar.bz2 42-cub3d-8f852afcfa170070b6f0ac2e321546990d87e401.tar.xz 42-cub3d-8f852afcfa170070b6f0ac2e321546990d87e401.tar.zst 42-cub3d-8f852afcfa170070b6f0ac2e321546990d87e401.zip |
gang
Diffstat (limited to 'src/ft_draw_sprite.c')
-rw-r--r-- | src/ft_draw_sprite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_draw_sprite.c b/src/ft_draw_sprite.c index 875e527..0430e2f 100644 --- a/src/ft_draw_sprite.c +++ b/src/ft_draw_sprite.c @@ -22,7 +22,7 @@ void { int32_t d; - printf("start x : %d\nstart y : %d\nend x : %d\nend y : %d\n", sprite->drawstartx, sprite->drawstarty, sprite->drawendy, sprite->drawendy); + /* printf("start x : %d\nstart y : %d\nend x : %d\nend y : %d\n", sprite->drawstartx, sprite->drawstarty, sprite->drawendy, sprite->drawendy); */ sprite->x = sprite->drawstartx; while (sprite->x < sprite->drawendx) { @@ -37,7 +37,7 @@ void sprite->spriteheight * 128; sprite->tex_y = ((d * cl->tlist[4].img_h / 2) / sprite->spriteheight) / 128; - if (cl->tlist[4].ptr[sprite->tex_x * 4 + 4 * cl->tlist[4].img_h * sprite->tex_y] != (char)0) + if (cl->tlist[4].ptr[sprite->tex_x * 4 + 4 * cl->tlist[4].img_h * sprite->tex_y]) { cl->img.ptr[sprite->x * 4 + (sprite->y * cl->img.sizeline)] = |