(sector_mcost, bp_neighbors, lnd_mar_one_sector): Deal with disabled
road/rail infrastructure.
This commit is contained in:
parent
9067d7a453
commit
07de857b88
3 changed files with 8 additions and 5 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue