X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=model_alias.c;h=ee6fe6abe1e4905db3e3192874597be7329bca3f;hp=edca9f90b45a33ebfd52b33c7a7e744cac9614ba;hb=c5b3416006c0d50e7c2d5f0a267ab85a40315bee;hpb=f4c2e8ef56b5f40a2d2187a4d4f8a24a7163ad6c diff --git a/model_alias.c b/model_alias.c index edca9f90..ee6fe6ab 100644 --- a/model_alias.c +++ b/model_alias.c @@ -224,22 +224,6 @@ static rtexture_t *GL_SkinSplit(byte *in, byte *out, int width, int height, unsi return NULL; } -static int GL_SkinCheck(byte *in, int width, int height, unsigned short bits) -{ - int i, pixels, passed; - byte pixeltest[16]; - for (i = 0;i < 16;i++) - pixeltest[i] = (bits & (1 << i)) != 0; - pixels = width*height; - passed = 0; - while(pixels--) - { - if (pixeltest[*in >> 4] && *in != 0 && *in != 255) - return true; - in++; - } - return false; -} static void Mod_LoadSkin (maliashdr_t *mheader, char *basename, byte *skindata, byte *skintemp, int width, int height, rtexture_t **skintex) {