From 6c5d9b3753a2756ee43066ddd14e5c89907c2572 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 6 Feb 2022 21:26:17 +0100 Subject: [PATCH] - fix bad factor --- source/games/duke/src/animatesprites_d.cpp | 4 ++-- source/games/duke/src/animatesprites_r.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/games/duke/src/animatesprites_d.cpp b/source/games/duke/src/animatesprites_d.cpp index 313d8863796..413e23e7b98 100644 --- a/source/games/duke/src/animatesprites_d.cpp +++ b/source/games/duke/src/animatesprites_d.cpp @@ -596,8 +596,8 @@ void animatesprites_d(tspriteArray& tsprites, int x, int y, int a, int smoothrat { // Alter the shadow's position so that it appears behind the sprite itself. int look = getangle(shadowspr->pos.XY() - ps[screenpeek].pos.XY()); - shadowspr->pos.X += buildang(look).fcos() * 0.125; - shadowspr->pos.Y += buildang(look).fsin() * 0.125; + shadowspr->pos.X += buildang(look).fcos() * 2; + shadowspr->pos.Y += buildang(look).fsin() * 2; } } } diff --git a/source/games/duke/src/animatesprites_r.cpp b/source/games/duke/src/animatesprites_r.cpp index 7c41211afb2..40dfc886add 100644 --- a/source/games/duke/src/animatesprites_r.cpp +++ b/source/games/duke/src/animatesprites_r.cpp @@ -753,8 +753,8 @@ void animatesprites_r(tspriteArray& tsprites, int x, int y, int a, int smoothrat { // Alter the shadow's position so that it appears behind the sprite itself. int look = getangle(shadowspr->pos.XY() - ps[screenpeek].pos.XY()); - shadowspr->pos.X += buildang(look).fcos() * 0.125; - shadowspr->pos.Y += buildang(look).fsin() * 0.125; + shadowspr->pos.X += buildang(look).fcos() * 2; + shadowspr->pos.Y += buildang(look).fsin() * 2; } } }