fix alias model loading for when the model has groups. gdbinit added to ease

debugging
This commit is contained in:
Bill Currie 2000-09-24 02:34:35 +00:00
parent 830d6e044e
commit b88799880f
4 changed files with 7 additions and 7 deletions

View file

@ -272,15 +272,16 @@ Alias models are position independent, so the cache manager can move them.
==============================================================================
*/
/* NOTE: the first three lines must match maliasgroupframedesc_t */
typedef struct
{
trivertx_t bboxmin;
trivertx_t bboxmax;
int frame;
aliasframetype_t type;
int firstpose;
int numposes;
float interval;
trivertx_t bboxmin;
trivertx_t bboxmax;
int frame;
char name[16];
} maliasframedesc_t;

1
source/.gdbinit Normal file
View file

@ -0,0 +1 @@
set args -nodga -nosound +set _windowed_mouse 0

View file

@ -210,7 +210,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);
@ -221,8 +221,7 @@ void *Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype, int *pskinind
for (j=0 ; j<groupskins ; j++)
{
skin+=4;
skin = Mod_LoadSkin (skin, skinsize, i, j, true);
skin = Mod_LoadSkin (skin, skinsize, i, j&3, true);
}
k = j;
for (/* */; j < 4; j++) {

View file

@ -150,7 +150,6 @@ void *Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype, int *pskinind
for (j=0 ; j<groupskins ; j++)
{
skin+=4;
skin = Mod_LoadSkin (skin, skinsize, &paliasskingroup->skindescs[i].skin, i, j);
}
}