From: havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Fri, 16 May 2003 11:34:56 +0000 (+0000)
Subject: corrected call to Image_HasAlpha to be Image_CheckAlpha
X-Git-Tag: xonotic-v0.1.0preview~6642
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=038ff8d79bb5044145cc2f87a8df1ce732209e4d;p=xonotic%2Fdarkplaces.git

corrected call to Image_HasAlpha to be Image_CheckAlpha


git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3000 d7cf8633-e32d-0410-b094-e92efae38249
---

diff --git a/image.c b/image.c
index 8a46f44f..23eb76b4 100644
--- a/image.c
+++ b/image.c
@@ -1428,7 +1428,7 @@ int image_loadskin(imageskin_t *s, char *name)
 	s->basepixels_height = image_height;
 
 	bumppixels = NULL;bumppixels_width = 0;bumppixels_height = 0;
-	if (Image_HasAlpha(s->basepixels, s->basepixels_width * s->basepixels_height, true))
+	if (Image_CheckAlpha(s->basepixels, s->basepixels_width * s->basepixels_height, true))
 	{
 		s->maskpixels = Mem_Alloc(loadmodel->mempool, s->basepixels_width * s->basepixels_height * 4);
 		s->maskpixels_width = s->basepixels_width;