- fixed Blood's weapon drawer.

It didn't clear its custom flags and applied the wrong shade.
This commit is contained in:
Christoph Oelckers 2020-08-19 16:56:36 +02:00
parent e22d9b21e4
commit f327e3832a

View file

@ -74,12 +74,15 @@ void DrawFrame(double x, double y, TILE_FRAME *pTile, int stat, int shade, int p
}
else
{
// there's some disagreements about flag values between QAV and the drawer. Shuffle these around.
if (stat & RS_YFLIP) stat |= RS_YFLIPHUD;
stat &= ~RS_YFLIP;
if (stat & 0x100) stat |= RS_XFLIPHUD;
stat &= ~0x100;
if ((stat & kQavOrientationLeft)) stat |= RS_ALIGN_L;
stat &= ~kQavOrientationLeft;
hud_drawsprite(x, y, pTile->z, pTile->angle, pTile->picnum, shade, palnum, stat);
hud_drawsprite(x, y, pTile->z, pTile->angle, pTile->picnum, pTile->shade + shade, palnum, stat);
}
}