Fix potential misalignment with scaled slope textures

This commit is contained in:
Lactozilla 2023-11-24 12:28:53 -03:00
parent c5de9bdb7d
commit b411b9e523

View file

@ -1037,7 +1037,7 @@ void R_DrawSinglePlane(visplane_t *pl)
{
mapfunc = R_MapTiltedPlane;
if (!pl->plangle && !ds_solidcolor)
if (!pl->plangle && !ds_solidcolor && pl->xscale == FRACUNIT && pl->yscale == FRACUNIT)
{
if (ds_powersoftwo)
R_AdjustSlopeCoordinates(&pl->slope->o);