mirror of
https://git.code.sf.net/p/quake/nuq
synced 2024-11-21 19:51:09 +00:00
hopefully fix alias models with mutliple skins and/or skin groups
This commit is contained in:
parent
464215e882
commit
ad7756a531
1 changed files with 4 additions and 5 deletions
|
@ -187,8 +187,6 @@ void *Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype, int *pskinind
|
|||
int groupskins;
|
||||
daliasskininterval_t *pinskinintervals;
|
||||
|
||||
skin = (byte *)pskintype;
|
||||
|
||||
if (numskins < 1 || numskins > MAX_SKINS)
|
||||
Sys_Error ("Mod_LoadAliasModel: Invalid # of skins: %d\n", numskins);
|
||||
|
||||
|
@ -197,7 +195,7 @@ void *Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype, int *pskinind
|
|||
for (i=0 ; i<numskins ; i++)
|
||||
{
|
||||
if (pskintype->type == ALIAS_SKIN_SINGLE) {
|
||||
skin+=4;
|
||||
skin = (byte *)(pskintype+1);
|
||||
skin = Mod_LoadSkin (skin, skinsize, i, 0, false);
|
||||
|
||||
for (j=1; j < 4; j++) {
|
||||
|
@ -208,7 +206,7 @@ void *Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype, int *pskinind
|
|||
}
|
||||
} else {
|
||||
// animating skin group. yuck.
|
||||
Con_Printf("Animating Skin Group, if you get this message please notify warp@debian.org\n");
|
||||
//Con_Printf("Animating Skin Group, if you get this message please notify warp@debian.org\n");
|
||||
pskintype++;
|
||||
pinskingroup = (daliasskingroup_t *)pskintype;
|
||||
groupskins = LittleLong (pinskingroup->numskins);
|
||||
|
@ -229,9 +227,10 @@ void *Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype, int *pskinind
|
|||
pheader->gl_fb_texturenum[i][j - k];
|
||||
}
|
||||
}
|
||||
pskintype = (daliasskintype_t*)skin;
|
||||
}
|
||||
|
||||
return (void *)skin;
|
||||
return pskintype;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue