aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_sprite_extra.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-02 16:46:36 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-02 16:46:36 +0200
commit556a636f4551be460d7d20a97aa5b7715e2ff6ad (patch)
tree663319bfe43ad98e9ab86f54c14587e8e94df528 /src/ft_draw_sprite_extra.c
parentFixed coll now sprites, still revert if needed (diff)
download42-cub3d-556a636f4551be460d7d20a97aa5b7715e2ff6ad.tar.gz
42-cub3d-556a636f4551be460d7d20a97aa5b7715e2ff6ad.tar.bz2
42-cub3d-556a636f4551be460d7d20a97aa5b7715e2ff6ad.tar.xz
42-cub3d-556a636f4551be460d7d20a97aa5b7715e2ff6ad.tar.zst
42-cub3d-556a636f4551be460d7d20a97aa5b7715e2ff6ad.zip
Still sprites, still revert maybe
Diffstat (limited to 'src/ft_draw_sprite_extra.c')
-rw-r--r--src/ft_draw_sprite_extra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_draw_sprite_extra.c b/src/ft_draw_sprite_extra.c
index e19fbf2..de02f86 100644
--- a/src/ft_draw_sprite_extra.c
+++ b/src/ft_draw_sprite_extra.c
@@ -44,7 +44,7 @@ static void
sprite->transformx = sprite->invdet * (cl->plist.dir_x * sprite->spritex
- cl->plist.dir_y * sprite->spritey);
sprite->transformy = sprite->invdet * (cl->plist.plane_y * sprite->spritex
- + cl->plist.plane_x * sprite->spritey);
+ - cl->plist.plane_x * sprite->spritey);
sprite->spritescreenx = (int)(cl->wlist.x_size / 2) *
(1 + sprite->transformx / sprite->transformy);
}