subs: Factor common military counting out of shoo() and conv()
Put the new function security_strength() next to military_control(), because that one does a similar count. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
602f15f52d
commit
ffd6651f86
4 changed files with 33 additions and 39 deletions
|
@ -399,6 +399,7 @@ extern int check_trade_ok(struct trdstr *);
|
|||
/* coastal.c */
|
||||
extern void set_coastal(struct sctstr *, int, int);
|
||||
/* control.c */
|
||||
extern int security_strength(struct sctstr *, int *);
|
||||
extern int military_control(struct sctstr *);
|
||||
extern int abandon_askyn(struct sctstr *, i_type, int, struct ulist *);
|
||||
extern int would_abandon(struct sctstr *, i_type, int, struct ulist *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue