mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
fix a silly goof with the models
This commit is contained in:
parent
09f19fd9c9
commit
3ce8029f74
5 changed files with 18 additions and 18 deletions
|
@ -463,8 +463,8 @@ void Mod_ProcessTexture(miptex_t *mt, texture_t *tx);
|
|||
void Mod_LoadLighting (lump_t *l);
|
||||
int Mod_CalcFullbright (byte *in, byte *out, int pixels);
|
||||
|
||||
void *Mod_LoadAliasFrame (void *pin, int posenum, maliasframedesc_t *frame);
|
||||
void *Mod_LoadAliasGroup (void *pin, int posenum, maliasframedesc_t *frame);
|
||||
void *Mod_LoadAliasFrame (void *pin, int *posenum, maliasframedesc_t *frame);
|
||||
void *Mod_LoadAliasGroup (void *pin, int *posenum, maliasframedesc_t *frame);
|
||||
void *Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype,
|
||||
int *pskinindex);
|
||||
void GL_MakeAliasModelDisplayLists (model_t *m, aliashdr_t *hdr, void *_m,
|
||||
|
|
|
@ -233,7 +233,7 @@ Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype, int *pskinindex)
|
|||
}
|
||||
|
||||
void *
|
||||
Mod_LoadAliasFrame (void *pin, int posenum, maliasframedesc_t *frame)
|
||||
Mod_LoadAliasFrame (void *pin, int *posenum, maliasframedesc_t *frame)
|
||||
{
|
||||
trivertx_t *pinframe;
|
||||
int i;
|
||||
|
@ -242,7 +242,7 @@ Mod_LoadAliasFrame (void *pin, int posenum, maliasframedesc_t *frame)
|
|||
pdaliasframe = (daliasframe_t *) pin;
|
||||
|
||||
strcpy (frame->name, pdaliasframe->name);
|
||||
frame->firstpose = posenum;
|
||||
frame->firstpose = (*posenum);
|
||||
frame->numposes = 1;
|
||||
|
||||
for (i = 0; i < 3; i++) {
|
||||
|
@ -253,8 +253,8 @@ Mod_LoadAliasFrame (void *pin, int posenum, maliasframedesc_t *frame)
|
|||
|
||||
pinframe = (trivertx_t *) (pdaliasframe + 1);
|
||||
|
||||
poseverts[posenum] = pinframe;
|
||||
posenum++;
|
||||
poseverts[(*posenum)] = pinframe;
|
||||
(*posenum)++;
|
||||
|
||||
pinframe += pheader->mdl.numverts;
|
||||
|
||||
|
@ -262,7 +262,7 @@ Mod_LoadAliasFrame (void *pin, int posenum, maliasframedesc_t *frame)
|
|||
}
|
||||
|
||||
void *
|
||||
Mod_LoadAliasGroup (void *pin, int posenum, maliasframedesc_t *frame)
|
||||
Mod_LoadAliasGroup (void *pin, int *posenum, maliasframedesc_t *frame)
|
||||
{
|
||||
daliasgroup_t *pingroup;
|
||||
int i, numframes;
|
||||
|
@ -273,7 +273,7 @@ Mod_LoadAliasGroup (void *pin, int posenum, maliasframedesc_t *frame)
|
|||
|
||||
numframes = LittleLong (pingroup->numframes);
|
||||
|
||||
frame->firstpose = posenum;
|
||||
frame->firstpose = (*posenum);
|
||||
frame->numposes = numframes;
|
||||
|
||||
for (i = 0; i < 3; i++) {
|
||||
|
@ -291,8 +291,8 @@ Mod_LoadAliasGroup (void *pin, int posenum, maliasframedesc_t *frame)
|
|||
ptemp = (void *) pin_intervals;
|
||||
|
||||
for (i = 0; i < numframes; i++) {
|
||||
poseverts[posenum] = (trivertx_t *) ((daliasframe_t *) ptemp + 1);
|
||||
posenum++;
|
||||
poseverts[(*posenum)] = (trivertx_t *) ((daliasframe_t *) ptemp + 1);
|
||||
(*posenum)++;
|
||||
ptemp = (trivertx_t *) ((daliasframe_t *) ptemp + 1) + pheader->mdl.numverts;
|
||||
}
|
||||
return ptemp;
|
||||
|
|
|
@ -187,11 +187,11 @@ Mod_LoadAliasModel (model_t *mod, void *buffer, cache_allocator_t allocator)
|
|||
|
||||
if (frametype == ALIAS_SINGLE) {
|
||||
pframetype = (daliasframetype_t *)
|
||||
Mod_LoadAliasFrame (pframetype + 1, posenum,
|
||||
Mod_LoadAliasFrame (pframetype + 1, &posenum,
|
||||
&pheader->frames[i]);
|
||||
} else {
|
||||
pframetype = (daliasframetype_t *)
|
||||
Mod_LoadAliasGroup (pframetype + 1, posenum,
|
||||
Mod_LoadAliasGroup (pframetype + 1, &posenum,
|
||||
&pheader->frames[i]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -190,7 +190,7 @@ GL_MakeAliasModelDisplayLists (model_t *m, aliashdr_t *hdr, void *_m, int _s)
|
|||
}
|
||||
|
||||
void *
|
||||
Mod_LoadAliasFrame (void *pin, int posenum, maliasframedesc_t *frame)
|
||||
Mod_LoadAliasFrame (void *pin, int *posenum, maliasframedesc_t *frame)
|
||||
{
|
||||
trivertx_t *pframe, *pinframe;
|
||||
int i, j;
|
||||
|
@ -228,7 +228,7 @@ Mod_LoadAliasFrame (void *pin, int posenum, maliasframedesc_t *frame)
|
|||
}
|
||||
|
||||
void *
|
||||
Mod_LoadAliasGroup (void *pin, int posenum, maliasframedesc_t *frame)
|
||||
Mod_LoadAliasGroup (void *pin, int *posenum, maliasframedesc_t *frame)
|
||||
{
|
||||
daliasgroup_t *pingroup;
|
||||
maliasgroup_t *paliasgroup;
|
||||
|
@ -272,7 +272,7 @@ Mod_LoadAliasGroup (void *pin, int posenum, maliasframedesc_t *frame)
|
|||
|
||||
for (i = 0; i < numframes; i++) {
|
||||
maliasframedesc_t temp_frame;
|
||||
ptemp = Mod_LoadAliasFrame (ptemp, i, &temp_frame);
|
||||
ptemp = Mod_LoadAliasFrame (ptemp, &i, &temp_frame);
|
||||
memcpy (&paliasgroup->frames[i], &temp_frame,
|
||||
sizeof(paliasgroup->frames[i]));
|
||||
}
|
||||
|
|
|
@ -184,7 +184,7 @@ GL_MakeAliasModelDisplayLists (model_t *m, aliashdr_t *hdr, void *_m, int _s)
|
|||
}
|
||||
|
||||
void *
|
||||
Mod_LoadAliasFrame (void *pin, int posenum, maliasframedesc_t *frame)
|
||||
Mod_LoadAliasFrame (void *pin, int *posenum, maliasframedesc_t *frame)
|
||||
{
|
||||
trivertx_t *pframe, *pinframe;
|
||||
int i, j;
|
||||
|
@ -223,7 +223,7 @@ Mod_LoadAliasFrame (void *pin, int posenum, maliasframedesc_t *frame)
|
|||
}
|
||||
|
||||
void *
|
||||
Mod_LoadAliasGroup (void *pin, int posenum, maliasframedesc_t *frame)
|
||||
Mod_LoadAliasGroup (void *pin, int *posenum, maliasframedesc_t *frame)
|
||||
{
|
||||
daliasgroup_t *pingroup;
|
||||
maliasgroup_t *paliasgroup;
|
||||
|
@ -267,7 +267,7 @@ Mod_LoadAliasGroup (void *pin, int posenum, maliasframedesc_t *frame)
|
|||
|
||||
for (i = 0; i < numframes; i++) {
|
||||
maliasframedesc_t temp_frame;
|
||||
ptemp = Mod_LoadAliasFrame (ptemp, i, &temp_frame);
|
||||
ptemp = Mod_LoadAliasFrame (ptemp, &i, &temp_frame);
|
||||
memcpy (&paliasgroup->frames[i], &temp_frame,
|
||||
sizeof(paliasgroup->frames[i]));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue