From accc9890dfe9c24cfc45136b7c5464a2b034d98f Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 14 Dec 2024 16:27:06 +0100 Subject: [PATCH] fix inverted papersprite roll oopsie --- src/hardware/hw_main.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 92f1d9588..0dcf5cf67 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -4598,18 +4598,10 @@ static void HWR_ProjectSprite(mobj_t *thing) #ifdef ROTSPRITE if (shouldrotate) { - if (papersprite) - { - // a positive rollangle should should pitch papersprites upwards relative to their facing angle - rollangle = InvAngle(thing->rollangle); - } - else - { - // this is very messy, but it on-the-fly calculates rotations for all the - // pitch and roll variables - pitchnroll = R_RotationAngle(ang, camang, &interp); - rollangle = thing->rollangle; - } + // this is very messy, but it on-the-fly calculates rotations for all the + // pitch and roll variables + pitchnroll = R_RotationAngle(ang, camang, &interp); + rollangle = thing->rollangle; if (rollangle || pitchnroll || sliprollrotate) {