Commit f898677f authored by Richard Gobeille's avatar Richard Gobeille
Browse files

engine: RS_FORCELERP overrides flags check

parent b924fabe
......@@ -7350,9 +7350,9 @@ static void dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t
auto lerpWouldLookDerp = [&](void)
{
return (!(dastat & RS_LERP) && r_rotatespriteinterp < 2) || sm.flags != (dastat & ~RS_TRANS_MASK)
|| (!(dastat & RS_FORCELERP) && tilesiz[picnum] != tilesiz[sm.picnum]
&& ((unsigned)(picnum - sm.picnum) > (int)(r_rotatespriteinterp == 3))) || klabs(a - sm.goal.a) == 1024;
return (!(dastat & RS_LERP) && r_rotatespriteinterp < 2)
|| (!(dastat & RS_FORCELERP) && (sm.flags != (dastat & ~RS_TRANS_MASK) || (tilesiz[picnum] != tilesiz[sm.picnum]
&& ((unsigned)(picnum - sm.picnum) > (int)(r_rotatespriteinterp == 3))))) || klabs(a - sm.goal.a) == 1024;
};
if (!lerpWouldLookDerp())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment