From 56e1b50260e448ef740950f8b526c346d329a557 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 57408998b..0c30905e9 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -4649,18 +4649,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) {