Move file initialization from files.c to empfile oninit()
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 3 May 2011 18:48:56 +0000 (20:48 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 25 Jun 2011 14:50:06 +0000 (16:50 +0200)
commit3fe3cd376fdbfd57a2d6c5340ddbc9eed4e61d42
treec3edc3a66d5ae6b4148b18e27cd4ef882d6e6d61
parent576a3c60ed39c97e1960500f85e415712b389605
Move file initialization from files.c to empfile oninit()

files.c writes initial contents to game state files with fixed size.
Necessary for setting up invariants, such as struct sctstr members
sct_x, sct_y matching sct_uid.

Do that from the oninit() callback, so ef_blank() sets up invariants
correctly.  Since ef_blank() isn't used for these files right now,
this isn't a bug fix, just cleanup.
src/lib/common/filetable.c
src/util/files.c