- Added +SPRITEFLIP which reverses a sprite's left-rightness.

This commit is contained in:
Rachael Alexanderson 2017-05-03 13:47:27 -04:00 committed by Christoph Oelckers
commit 2acb485121
6 changed files with 19 additions and 4 deletions

View file

@ -145,6 +145,10 @@ namespace swrenderer
// [RH] Flip for mirrors
renderflags ^= renderportal->MirrorFlags & RF_XFLIP;
// [SP] SpriteFlip
if (thing->flags7 & MF7_SPRITEFLIP)
renderflags ^= RF_XFLIP;
// calculate edges of the shape
const double thingxscalemul = spriteScale.X / tex->Scale.X;