mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 01:41:10 +00:00
set the disksize of the wad entry
This is an imperfect revision of history.
This commit is contained in:
parent
8e2f392d2d
commit
6625d38a05
1 changed files with 2 additions and 0 deletions
|
@ -266,6 +266,7 @@ wad_add (wad_t *wad, const char *filename, const char *lumpname, byte type)
|
|||
static char buf[4];
|
||||
Qwrite (wad->handle, buf, 4 - (pf->size & 3));
|
||||
}
|
||||
pf->disksize = pf->size;
|
||||
Hash_AddElement (wad->lump_hash, pf);
|
||||
return 0;
|
||||
}
|
||||
|
@ -312,6 +313,7 @@ wad_add_data (wad_t *wad, const char *lumpname, byte type, const void *data,
|
|||
static char buf[4];
|
||||
Qwrite (wad->handle, buf, 4 - (pf->size & 3));
|
||||
}
|
||||
pf->disksize = pf->size;
|
||||
Hash_AddElement (wad->lump_hash, pf);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue