Ported this fix from internal

This commit is contained in:
TehRealSalt 2017-10-18 18:14:49 -04:00
parent 5a7458be98
commit b66fc2f5ac

View file

@ -149,7 +149,12 @@ static void R_InstallSpriteLump(UINT16 wad, // graphics patch
sprtemp[frame].lumppat[r + rightfactor] = lumppat; sprtemp[frame].lumppat[r + rightfactor] = lumppat;
sprtemp[frame].lumpid[r + rightfactor] = lumpid; sprtemp[frame].lumpid[r + rightfactor] = lumpid;
} }
sprtemp[frame].flip |= (flipped ? (0x0F << rightfactor) : 0); // 00001111 or 11110000 in binary, depending on rotation being ROT_L or ROT_R
if (flipped)
sprtemp[frame].flip |= (0x0F<<rightfactor); // 00001111 or 11110000 in binary, depending on rotation being ROT_L or ROT_R
else
sprtemp[frame].flip &= ~(0x0F<<rightfactor); // ditto
return; return;
} }