diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-02 16:46:36 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-02 16:46:36 +0200 |
commit | 556a636f4551be460d7d20a97aa5b7715e2ff6ad (patch) | |
tree | 663319bfe43ad98e9ab86f54c14587e8e94df528 | |
parent | Fixed coll now sprites, still revert if needed (diff) | |
download | 42-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 '')
-rw-r--r-- | src/ft_draw_sprite_extra.c | 2 |
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); } |