little speed up

This commit is contained in:
Denis Pauk 2018-04-26 23:16:47 +03:00
parent 56ea94978d
commit 96a81f64f9

View file

@ -122,14 +122,15 @@ R_LoadPic (char *name, byte *pic, int width, int height, imagetype_t type)
image->transparent = false;
for (i=0 ; i<c ; i++)
{
int b;
b = pic[i];
if (b == 255)
if (pic[i] == 255)
{
image->transparent = true;
image->pixels[0][i] = b;
break;
}
}
memcpy(image->pixels[0], pic, c);
return image;
}