Move pln_oninit(), lnd_oninit(), nuk_oninit() to filetable.c
They set up invariants, and thus should be always active, not just in the server. Since ef_blank() isn't used for these files outside the server right now, this isn't a bug fix, just cleanup.
This commit is contained in:
parent
3fe3cd376f
commit
31b9ff08f3
6 changed files with 35 additions and 37 deletions
|
@ -88,14 +88,6 @@ lnd_prewrite(int n, void *old, void *new)
|
|||
unit_update_cargo((struct empobj *)lp);
|
||||
}
|
||||
|
||||
void
|
||||
lnd_oninit(void *ptr)
|
||||
{
|
||||
struct lndstr *lp = ptr;
|
||||
|
||||
lp->lnd_ship = lp->lnd_land = -1;
|
||||
}
|
||||
|
||||
char *
|
||||
prland(struct lndstr *lp)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue