(UNMAPPED_INIT, UNMAPPED_CACHE, ARRAY_INIT, ARRAY_TABLE, PTR_INIT)
(PTR_CACHE): Rename. (ARRAY_CACHE): New. (empfile): Use it to set csize of elements EF_SHIP_CHR, EF_PLANE_CHR, EF_LAND_CHR, EF_NUKE_CHR. (ef_init_chr): Now that empfile[]'s initializer sets csize, remove the temporary csize initialization here. The value wasn't correct, but better than nothing.
This commit is contained in:
parent
d71ab5a3e5
commit
41bf5be715
2 changed files with 58 additions and 41 deletions
|
@ -530,7 +530,7 @@ ef_init_chr(int type, size_t size, ptrdiff_t name_offs)
|
|||
for (p = ep->cache;
|
||||
*((char **)(p + name_offs)) && **((char **)(p + name_offs));
|
||||
p += size) ;
|
||||
ef_fix_size(ep, (p - ep->cache) / size);
|
||||
ep->cids = ep->fids = (p - ep->cache) / size;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue