mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Small loading speedup.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2012 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
7120a5d1b9
commit
30fa877587
1 changed files with 4 additions and 4 deletions
|
@ -2466,6 +2466,7 @@ void GLMod_LoadBrushModel (model_t *mod, void *buffer)
|
||||||
dheader_t *header;
|
dheader_t *header;
|
||||||
mmodel_t *bm;
|
mmodel_t *bm;
|
||||||
model_t *lm=mod;
|
model_t *lm=mod;
|
||||||
|
unsigned int chksum;
|
||||||
|
|
||||||
loadmodel->type = mod_brush;
|
loadmodel->type = mod_brush;
|
||||||
|
|
||||||
|
@ -2514,13 +2515,12 @@ void GLMod_LoadBrushModel (model_t *mod, void *buffer)
|
||||||
for (i = 0; i < HEADER_LUMPS; i++) {
|
for (i = 0; i < HEADER_LUMPS; i++) {
|
||||||
if (i == LUMP_ENTITIES)
|
if (i == LUMP_ENTITIES)
|
||||||
continue;
|
continue;
|
||||||
mod->checksum ^= Com_BlockChecksum(mod_base + header->lumps[i].fileofs,
|
chksum = Com_BlockChecksum(mod_base + header->lumps[i].fileofs, header->lumps[i].filelen);
|
||||||
header->lumps[i].filelen);
|
mod->checksum ^= chksum;
|
||||||
|
|
||||||
if (i == LUMP_VISIBILITY || i == LUMP_LEAFS || i == LUMP_NODES)
|
if (i == LUMP_VISIBILITY || i == LUMP_LEAFS || i == LUMP_NODES)
|
||||||
continue;
|
continue;
|
||||||
mod->checksum2 ^= Com_BlockChecksum(mod_base + header->lumps[i].fileofs,
|
mod->checksum2 ^= chksum;
|
||||||
header->lumps[i].filelen);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// load into heap
|
// load into heap
|
||||||
|
|
Loading…
Reference in a new issue