mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +00:00
very minor load-time optimisation
This commit is contained in:
parent
7f295d61ee
commit
e4975cd675
1 changed files with 1 additions and 5 deletions
|
@ -139,12 +139,8 @@ Mod_LoadLighting (lump_t *l)
|
||||||
if (!l->filelen)
|
if (!l->filelen)
|
||||||
return;
|
return;
|
||||||
loadmodel->lightdata = Hunk_AllocName (l->filelen * 3, litfilename);
|
loadmodel->lightdata = Hunk_AllocName (l->filelen * 3, litfilename);
|
||||||
in = loadmodel->lightdata + l->filelen * 2; // place the file at the end,
|
in = mod_base + l->fileofs;
|
||||||
// so it will not be
|
|
||||||
// overwritten until the very
|
|
||||||
// last write
|
|
||||||
out = loadmodel->lightdata;
|
out = loadmodel->lightdata;
|
||||||
memcpy (in, mod_base + l->fileofs, l->filelen);
|
|
||||||
for (i = 0; i < l->filelen; i++) {
|
for (i = 0; i < l->filelen; i++) {
|
||||||
d = *in++;
|
d = *in++;
|
||||||
*out++ = d;
|
*out++ = d;
|
||||||
|
|
Loading…
Reference in a new issue