mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-21 00:41:05 +00:00
little speed up
This commit is contained in:
parent
56ea94978d
commit
96a81f64f9
1 changed files with 6 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue