]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix hl sprite types again
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 2 Apr 2005 17:38:45 +0000 (17:38 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 2 Apr 2005 17:38:45 +0000 (17:38 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5141 d7cf8633-e32d-0410-b094-e92efae38249

model_sprite.c
spritegn.h

index 6e3f36551e2a57d7efab08ba7136f4a42f41986b..8aa39070d9e86ac2b350f42168b0f2e188c427ca 100644 (file)
@@ -258,8 +258,8 @@ void Mod_IDSP_Load(model_t *mod, void *buffer)
                datapointer += 768;
                switch(rendermode)
                {
-               case SPRHL_NORMAL:
-                       for (i = 0;i < 255;i++)
+               case SPRHL_OPAQUE:
+                       for (i = 0;i < 256;i++)
                        {
                                palette[i][0] = *in++;
                                palette[i][1] = *in++;
@@ -288,7 +288,7 @@ void Mod_IDSP_Load(model_t *mod, void *buffer)
                        }
                        break;
                case SPRHL_ALPHATEST:
-                       for (i = 0;i < 255;i++)
+                       for (i = 0;i < 256;i++)
                        {
                                palette[i][0] = *in++;
                                palette[i][1] = *in++;
index 027e64e25160bbaae72d7d369776699bdcb4e3f9..4b47cb0f9f26fb92f039ed0468b1d75b10b893e2 100644 (file)
@@ -8,7 +8,7 @@ of the License, or (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 See the GNU General Public License for more details.
 
@@ -82,9 +82,8 @@ typedef struct
 #define SPR_ORIENTED                           3
 #define SPR_VP_PARALLEL_ORIENTED       4
 
-#define SPRHL_NORMAL   0
+#define SPRHL_OPAQUE   0
 #define SPRHL_ADDITIVE 1
-// no idea how to handle these two rendering modes
 #define SPRHL_INDEXALPHA       2
 #define SPRHL_ALPHATEST        3