A small speedup.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1993 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
02c5931431
commit
8ab73045aa
1 changed files with 5 additions and 4 deletions
|
@ -1241,6 +1241,7 @@ void Mod_LoadBrushModel (model_t *mod, void *buffer)
|
|||
int i, j;
|
||||
dheader_t *header;
|
||||
mmodel_t *bm;
|
||||
unsigned int chksum;
|
||||
|
||||
loadmodel->type = mod_brush;
|
||||
|
||||
|
@ -1271,13 +1272,13 @@ void Mod_LoadBrushModel (model_t *mod, void *buffer)
|
|||
for (i = 0; i < HEADER_LUMPS; i++) {
|
||||
if (i == LUMP_ENTITIES)
|
||||
continue;
|
||||
mod->checksum ^= LittleLong(Com_BlockChecksum(mod_base + header->lumps[i].fileofs,
|
||||
header->lumps[i].filelen));
|
||||
chksum = Com_BlockChecksum(mod_base + header->lumps[i].fileofs,
|
||||
header->lumps[i].filelen);
|
||||
mod->checksum ^= chksum;
|
||||
|
||||
if (i == LUMP_VISIBILITY || i == LUMP_LEAFS || i == LUMP_NODES)
|
||||
continue;
|
||||
mod->checksum2 ^= Com_BlockChecksum(mod_base + header->lumps[i].fileofs,
|
||||
header->lumps[i].filelen);
|
||||
mod->checksum2 ^= chksum;
|
||||
}
|
||||
|
||||
// Mod_LoadVertexes (&header->lumps[LUMP_VERTEXES]);
|
||||
|
|
Loading…
Reference in a new issue