(effrange, torprange, fortrange): New.
(multifire, quiet_bigdef, torp, anti_torp, sd, sb) (lnd_fort_interdiction, lnd_support, perform_mission, oprange) (shp_fort_interdiction): Use them. This fixes forts shooting below FORTEFF in quiet_bigdef(), lnd_fort_interdiction() and shp_fort_interdiction(). Change variables for rounded ranges to int. (quiet_bigdef, sd): Don't scale ship firing range by efficiency. (dd, sb): Simplify. (sb): Internal linkage. (perform_mission): Rename range2 to vrange.
This commit is contained in:
parent
5b4b3a13cb
commit
a50ae4a3d8
8 changed files with 107 additions and 143 deletions
|
@ -460,7 +460,6 @@ extern void ef_fin_srv(void);
|
|||
/* fortdef.c */
|
||||
extern int sd(natid, natid, coord, coord, int, int, int);
|
||||
extern int dd(natid, natid, coord, coord, int, int);
|
||||
extern int sb(natid, natid, struct sctstr *, coord, coord, int, int);
|
||||
extern int shipdef(natid, natid, coord, coord);
|
||||
/* getbit.c */
|
||||
extern int emp_getbit(int, int, unsigned char *);
|
||||
|
@ -478,6 +477,9 @@ extern void lnd_init(int, void *);
|
|||
extern double seagun(int, int);
|
||||
extern double landgun(int, int);
|
||||
extern double landunitgun(int, int, int, int, int);
|
||||
extern double effrange(int, double);
|
||||
extern double torprange(struct shpstr *);
|
||||
extern double fortrange(struct sctstr *);
|
||||
extern int roundrange(double);
|
||||
/* list.c */
|
||||
extern int shipsatxy(coord, coord, int, int);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue