config: Drop configuration table size macros
Macros LND_TYPE_MAX, N_MAXNUKE, PLN_TYPE_MAX, P_MAX, SCT_TYPE_MAX, SHP_TYPE_MAX are only used to size a single array each. Eliminate. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
a374e6435d
commit
e379edc648
12 changed files with 17 additions and 25 deletions
|
@ -31,7 +31,7 @@
|
|||
* Thomas Ruschak, 1992
|
||||
* Ken Stevens, 1995
|
||||
* Steve McClure, 1998
|
||||
* Markus Armbruster, 2004-2016
|
||||
* Markus Armbruster, 2004-2020
|
||||
*/
|
||||
|
||||
#ifndef SHIP_H
|
||||
|
@ -42,7 +42,6 @@
|
|||
#include "retreat.h"
|
||||
#include "types.h"
|
||||
|
||||
#define SHP_TYPE_MAX 46
|
||||
#define SHIP_MINEFF 20
|
||||
|
||||
#define MAXSHPNAMLEN 24
|
||||
|
@ -127,7 +126,7 @@ struct mchrstr {
|
|||
#define putship(n, p) ef_write(EF_SHIP, (n), (p))
|
||||
#define getshipp(n) ((struct shpstr *)ef_ptr(EF_SHIP, (n)))
|
||||
|
||||
extern struct mchrstr mchr[SHP_TYPE_MAX + 2];
|
||||
extern struct mchrstr mchr[48];
|
||||
|
||||
enum {
|
||||
SHP_AIROPS_EFF = 50, /* min. efficiency for air ops */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue