(sector_mcost, bp_neighbors, lnd_mar_one_sector): Deal with disabled

road/rail infrastructure.
This commit is contained in:
Markus Armbruster 2006-06-16 21:11:25 +00:00
parent 9067d7a453
commit 07de857b88
3 changed files with 8 additions and 5 deletions

View file

@ -1072,7 +1072,7 @@ lnd_mar_one_sector(struct emp_qelem *list, int dir, natid actor,
continue;
}
}
if (sect.sct_rail == 0 &&
if ((!intrchr[INT_RAIL].in_enable || sect.sct_rail == 0) &&
lchr[(int)llp->land.lnd_type].l_flags & L_TRAIN) {
if (together) {
pr("no rail system in %s\n", xyas(newx, newy, actor));