- /* According to our bmap, this sector is ok so far. */
-
- /* Ok, we made it this far. Now get the sector */
- sect = getsectp(x, y);
- c = dchr[sect->sct_type].d_mnem;
- /* Ok, now, check the owner if needed */
- if (own >= 0) {
- if (sect->sct_own != own) {
- rel = getrel(getnatp(sect->sct_own), own);
- /* We can't sail through deity sectors, but we can sail
- through any ocean */
- if (rel < FRIENDLY && sect->sct_type != SCT_WATER)
- return 0;
- }
- }
- /* Ok, now, check these two sector types */
- /* check for bad harbors. */
- if (c == 'h' && sect->sct_effic < 2)
- return 0;
- /* check for bad bridges */
- if (c == '=' && sect->sct_effic < 60)
- return 0;
- /* Woo-hoo, it's ok! */