- 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:
Randy Heit 2012-05-10 03:47:40 +00:00
parent 9340dc4eca
commit eb03d8e77e

View file

@ -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)
{