Skip to content
Snippets Groups Projects
Commit b1c0dd43 authored by Lach's avatar Lach
Browse files

Merge branch 'fix-paper-roll' into 'next'

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

See merge request !1770
parents 55854410 8c62a0d6
No related branches found
No related tags found
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