set the disksize of the wad entry

This is an imperfect revision of history.
This commit is contained in:
Bill Currie 2004-11-02 05:15:00 +00:00 committed by Jeff Teunissen
parent 8e2f392d2d
commit 6625d38a05

View file

@ -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;
}