aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}