diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2020-02-28 13:51:59 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2020-02-28 13:51:59 +0100 |
commit | b19155962b963cfa2ce7a7ff8ed5bf1ba662f799 (patch) | |
tree | f16a9627694f45795dc9ef0e4096fdd0c4cdef94 | |
parent | hooooooooooooooooooooo (diff) | |
download | 42-cub3d-b19155962b963cfa2ce7a7ff8ed5bf1ba662f799.tar.gz 42-cub3d-b19155962b963cfa2ce7a7ff8ed5bf1ba662f799.tar.bz2 42-cub3d-b19155962b963cfa2ce7a7ff8ed5bf1ba662f799.tar.xz 42-cub3d-b19155962b963cfa2ce7a7ff8ed5bf1ba662f799.tar.zst 42-cub3d-b19155962b963cfa2ce7a7ff8ed5bf1ba662f799.zip |
lets GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
Diffstat (limited to '')
-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 d99e1be..875e527 100644 --- a/src/ft_draw_sprite.c +++ b/src/ft_draw_sprite.c @@ -35,9 +35,9 @@ void { d = sprite->y * 256 - cl->wlist->y_size * 128 + sprite->spriteheight * 128; - sprite->tex_y = ((d * cl->tlist[4].img_h) / + 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] != 0) + if (cl->tlist[4].ptr[sprite->tex_x * 4 + 4 * cl->tlist[4].img_h * sprite->tex_y] != (char)0) { cl->img.ptr[sprite->x * 4 + (sprite->y * cl->img.sizeline)] = |