very minor load-time optimisation

This commit is contained in:
Bill Currie 2002-04-23 17:23:18 +00:00
parent 7f295d61ee
commit e4975cd675

View file

@ -139,12 +139,8 @@ Mod_LoadLighting (lump_t *l)
if (!l->filelen)
return;
loadmodel->lightdata = Hunk_AllocName (l->filelen * 3, litfilename);
in = loadmodel->lightdata + l->filelen * 2; // place the file at the end,
// so it will not be
// overwritten until the very
// last write
in = mod_base + l->fileofs;
out = loadmodel->lightdata;
memcpy (in, mod_base + l->fileofs, l->filelen);
for (i = 0; i < l->filelen; i++) {
d = *in++;
*out++ = d;