dumbest hack ever

This commit is contained in:
Ian 2022-12-21 15:13:12 -05:00
parent d2ea2631f2
commit e5513fb25e
2 changed files with 7 additions and 7 deletions

View file

@ -35,7 +35,7 @@ void GL_InitTextureUsage ();
qboolean r_loadq3player = qfalse;
int decal_blood1, decal_blood2, decal_blood3, decal_q3blood, decal_burn, decal_mark, decal_glow;
int zombie_skins[4];
int zombie_skinss[4];
/*
==================
@ -54,10 +54,10 @@ void R_InitOtherTextures (void)
decal_glow = loadtextureimage ("textures/decals/glow2", 0, 0, qfalse, GU_LINEAR);
// external zombie skins
zombie_skins[0] = loadtextureimage ("models/ai/zfull.mdl_0", 0, 0, qtrue, GU_LINEAR);
zombie_skins[1] = loadtextureimage ("models/ai/zfull.mdl_1", 0, 0, qtrue, GU_LINEAR);
zombie_skins[2] = loadtextureimage ("models/ai/zfull.mdl_2", 0, 0, qtrue, GU_LINEAR);
zombie_skins[3] = loadtextureimage ("models/ai/zfull.mdl_3", 0, 0, qtrue, GU_LINEAR);
zombie_skinss[0] = loadtextureimage ("models/ai/zfull.mdl_0", 0, 0, qtrue, GU_LINEAR);
zombie_skinss[1] = loadtextureimage ("models/ai/zfull.mdl_1", 0, 0, qtrue, GU_LINEAR);
zombie_skinss[2] = loadtextureimage ("models/ai/zfull.mdl_2", 0, 0, qtrue, GU_LINEAR);
zombie_skinss[3] = loadtextureimage ("models/ai/zfull.mdl_3", 0, 0, qtrue, GU_LINEAR);
}
/*

View file

@ -2031,7 +2031,7 @@ Mod_LoadAllSkins
===============
*/
static qboolean mod_h2;
extern int zombie_skins[4];
extern int zombie_skinss[4];
void *Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype)
{
int i, j, k;
@ -2059,7 +2059,7 @@ void *Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype)
pheader->gl_texturenum[i][0] =
pheader->gl_texturenum[i][1] =
pheader->gl_texturenum[i][2] =
pheader->gl_texturenum[i][3] = zombie_skins[i];
pheader->gl_texturenum[i][3] = zombie_skinss[i];
}
pskintype = (daliasskintype_t *)((byte *)(pskintype+1) + s);