(player_set_nstat): New, factored out of init_nats().
(init_nats): Use it. No functional change. (status): Use it. This sets player->nstat from scratch, not just MONEY and CAP. (brea): Don't bother to update player->nstat, status() will.
This commit is contained in:
parent
96b20c90b2
commit
2b5ebf1f3f
4 changed files with 31 additions and 28 deletions
|
@ -411,6 +411,7 @@ extern int getminleft(time_t, int);
|
|||
/* empmod.c */
|
||||
/* init_nats.c */
|
||||
extern int init_nats(void);
|
||||
extern int player_set_nstat(struct player *, struct natstr *);
|
||||
/* login.c */
|
||||
extern void player_login(void *);
|
||||
/* nat.c */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue