Support definition of additional sector types in sector.config,

missing bits:
(budg, calc_all, update_main): Use SCT_TYPE_MAX instead of SCT_MAXDEF
to size tables.
(map_char): Update sanity check; use CANT_HAPPEN().
(show_sect_build, show_sect_stats, show_sect_capab): Use the sentinel
instead of SCT_MAXDEF.
This commit is contained in:
Markus Armbruster 2006-06-22 20:21:48 +00:00
parent 063aabb893
commit 9e8f74d239
4 changed files with 9 additions and 10 deletions

View file

@ -112,7 +112,7 @@ update_main(void *unused)
logerror("done preparing sectors.");
logerror("producing for countries...");
for (x = 0; x < MAXNOC; x++) {
long p_sect[SCT_MAXDEF+2][2];
long p_sect[SCT_TYPE_MAX+2][2];
memset(p_sect, 0, sizeof(p_sect));
mil_dbl_pay = 0;