From 30fa87758703dd0cf30459626b65249da389b358 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 22 Feb 2006 23:50:12 +0000 Subject: [PATCH] Small loading speedup. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2012 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_model.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/gl/gl_model.c b/engine/gl/gl_model.c index 183faaf64..31e1a6187 100644 --- a/engine/gl/gl_model.c +++ b/engine/gl/gl_model.c @@ -2466,6 +2466,7 @@ void GLMod_LoadBrushModel (model_t *mod, void *buffer) dheader_t *header; mmodel_t *bm; model_t *lm=mod; + unsigned int chksum; loadmodel->type = mod_brush; @@ -2514,13 +2515,12 @@ void GLMod_LoadBrushModel (model_t *mod, void *buffer) for (i = 0; i < HEADER_LUMPS; i++) { if (i == LUMP_ENTITIES) continue; - mod->checksum ^= 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; } // load into heap