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
|
@ -87,14 +87,6 @@ pln_prewrite(int n, void *old, void *new)
|
|||
unit_update_cargo((struct empobj *)pp);
|
||||
}
|
||||
|
||||
void
|
||||
pln_oninit(void *ptr)
|
||||
{
|
||||
struct plnstr *pp = ptr;
|
||||
|
||||
pp->pln_ship = pp->pln_land = -1;
|
||||
}
|
||||
|
||||
char *
|
||||
prplane(struct plnstr *pp)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue