mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +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)
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue