Skip to content
Snippets Groups Projects
Commit 8c62a0d6 authored by Sal's avatar Sal
Browse files

Fix papersprites being rotated incorrectly in Software when viewing them on the flipped side

parent 55854410
Branches
Tags
1 merge request!1770Fix papersprites being rotated incorrectly in Software when viewing them on the flipped side
......@@ -1610,8 +1610,17 @@ static void R_ProjectSprite(mobj_t *thing)
#ifdef ROTSPRITE
if (thing->rollangle
&& !(splat && !(thing->renderflags & RF_NOSPLATROLLANGLE)))
{
if (papersprite && ang >= ANGLE_180)
{
// Makes Software act much more sane like OpenGL
rollangle = R_GetRollAngle(InvAngle(thing->rollangle));
}
else
{
rollangle = R_GetRollAngle(thing->rollangle);
}
rotsprite = Patch_GetRotatedSprite(sprframe, (thing->frame & FF_FRAMEMASK), rot, flip, false, sprinfo, rollangle);
if (rotsprite != NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment