mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- fixed Blood's weapon drawer.
It didn't clear its custom flags and applied the wrong shade.
This commit is contained in:
parent
e22d9b21e4
commit
f327e3832a
1 changed files with 4 additions and 1 deletions
|
@ -74,12 +74,15 @@ void DrawFrame(double x, double y, TILE_FRAME *pTile, int stat, int shade, int p
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// there's some disagreements about flag values between QAV and the drawer. Shuffle these around.
|
||||||
if (stat & RS_YFLIP) stat |= RS_YFLIPHUD;
|
if (stat & RS_YFLIP) stat |= RS_YFLIPHUD;
|
||||||
stat &= ~RS_YFLIP;
|
stat &= ~RS_YFLIP;
|
||||||
if (stat & 0x100) stat |= RS_XFLIPHUD;
|
if (stat & 0x100) stat |= RS_XFLIPHUD;
|
||||||
|
stat &= ~0x100;
|
||||||
if ((stat & kQavOrientationLeft)) stat |= RS_ALIGN_L;
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue