Better document how .config must match compiled-in UIDs

This commit is contained in:
Markus Armbruster 2011-04-25 10:27:32 +02:00
parent 221268e0e1
commit 03a2c61de4
5 changed files with 14 additions and 3 deletions

View file

@ -121,8 +121,7 @@ struct dchrstr {
char *d_name; /* full name of sector type */
};
/* sector types (must agree with order in dchr, empglb.c) */
/* Sector types, must match sect.config */
#define SCT_WATER 0 /* basics */
#define SCT_MOUNT 1
#define SCT_SANCT 2
@ -195,6 +194,7 @@ extern struct dchrstr dchr[SCT_TYPE_MAX + 2];
#define SCT_LANDMINES(sp) \
(SCT_MINES_ARE_SEAMINES((sp)) ? 0 : (sp)->sct_mines)
/* Sector infrastructure types, must match infra.config */
#define INT_ROAD 0
#define INT_RAIL 1
#define INT_DEF 2