(pln_oneway_to_carrier_ok): New.
(fly, reco): Use it to prevent flying to a carrier that doesn't have space for the planes. Previously, planes that did this were teleported home, which could be abused. (fly): Fail if pln_sel() comes up empty, just like the other commands to fly planes.
This commit is contained in:
parent
ab0d5a87bd
commit
1127762cc1
4 changed files with 66 additions and 2 deletions
|
@ -393,6 +393,8 @@ extern void pln_init(int, s_char *);
|
|||
/* plnsub.c */
|
||||
extern void count_planes(struct shpstr *);
|
||||
extern int pln_onewaymission(struct sctstr *, int *, int *);
|
||||
extern int pln_oneway_to_carrier_ok(struct emp_qelem *,
|
||||
struct emp_qelem *, int);
|
||||
extern void pln_newlanding(struct emp_qelem *, coord, coord, int);
|
||||
extern int can_be_on_ship(int, int);
|
||||
extern int put_plane_on_ship(struct plnstr *, struct shpstr *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue