mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- There doesn't seem to be much point to this inf==NULL check when inf isn't used either way...
SVN r3635 (trunk)
This commit is contained in:
parent
9340dc4eca
commit
eb03d8e77e
1 changed files with 2 additions and 3 deletions
|
@ -573,7 +573,7 @@ int FMultiPatchTexture::CopyTrueColorPixels(FBitmap *bmp, int x, int y, int rota
|
|||
// rotated multipatch parts cannot be composited directly
|
||||
bool rotatedmulti = Parts[i].Rotate != 0 && Parts[i].Texture->bMultiPatch;
|
||||
|
||||
memset (&info, 0, sizeof (info));
|
||||
memset (&info, 0, sizeof(info));
|
||||
info.alpha = Parts[i].Alpha;
|
||||
info.invalpha = FRACUNIT - info.alpha;
|
||||
info.op = ECopyOp(Parts[i].op);
|
||||
|
@ -597,12 +597,11 @@ int FMultiPatchTexture::CopyTrueColorPixels(FBitmap *bmp, int x, int y, int rota
|
|||
info.blendcolor[0] = b.r * (FRACUNIT-info.blendcolor[3]);
|
||||
info.blendcolor[1] = b.g * (FRACUNIT-info.blendcolor[3]);
|
||||
info.blendcolor[2] = b.b * (FRACUNIT-info.blendcolor[3]);
|
||||
|
||||
info.blend = BLEND_OVERLAY;
|
||||
}
|
||||
}
|
||||
|
||||
if ((!Parts[i].Texture->bComplex || inf == NULL) && !rotatedmulti)
|
||||
if (!Parts[i].Texture->bComplex && !rotatedmulti)
|
||||
{
|
||||
if (Parts[i].Translation != NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue