mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-16 16:41:30 +00:00
marginally closer to properly separated cl and sv model.c
This commit is contained in:
parent
d39830f804
commit
2821e93eda
1 changed files with 3 additions and 9 deletions
|
@ -583,19 +583,13 @@ void Mod_LoadTexinfo (lump_t *l)
|
|||
|
||||
for ( i=0 ; i<count ; i++, in++, out++)
|
||||
{
|
||||
#if 0
|
||||
for (j=0 ; j<8 ; j++)
|
||||
out->vecs[0][j] = LittleFloat (in->vecs[0][j]);
|
||||
len1 = Length (in->vecs[0]);
|
||||
len2 = Length (in->vecs[1]);
|
||||
#else
|
||||
for (j=0 ; j<4 ; j++) {
|
||||
out->vecs[0][j] = LittleFloat (in->vecs[0][j]);
|
||||
out->vecs[1][j] = LittleFloat (in->vecs[1][j]);
|
||||
}
|
||||
len1 = Length (out->vecs[0]);
|
||||
len2 = Length (out->vecs[1]);
|
||||
#endif
|
||||
|
||||
if (len1 + len2 < 2 /*0.001*/)
|
||||
out->mipadjust = 1;
|
||||
else
|
||||
|
@ -1062,8 +1056,6 @@ void Mod_LoadBrushModel (model_t *mod, void *buffer)
|
|||
for (i=0 ; i<sizeof(dheader_t)/4 ; i++)
|
||||
((int *)header)[i] = LittleLong ( ((int *)header)[i]);
|
||||
|
||||
// load into heap
|
||||
|
||||
mod->checksum = 0;
|
||||
mod->checksum2 = 0;
|
||||
|
||||
|
@ -1080,6 +1072,8 @@ void Mod_LoadBrushModel (model_t *mod, void *buffer)
|
|||
header->lumps[i].filelen));
|
||||
}
|
||||
|
||||
// load into heap
|
||||
|
||||
Mod_LoadVertexes (&header->lumps[LUMP_VERTEXES]);
|
||||
Mod_LoadEdges (&header->lumps[LUMP_EDGES]);
|
||||
Mod_LoadSurfedges (&header->lumps[LUMP_SURFEDGES]);
|
||||
|
|
Loading…
Reference in a new issue