Let ships navigate bridge spans regardless of owner
This commit is contained in:
parent
f7d6181717
commit
4e962406ff
2 changed files with 2 additions and 0 deletions
|
@ -251,6 +251,7 @@ retreat_ship1(struct shpstr *sp, char code, int orig)
|
||||||
getsect(newx, newy, §);
|
getsect(newx, newy, §);
|
||||||
if (shp_check_nav(§, sp) != CN_NAVIGABLE ||
|
if (shp_check_nav(§, sp) != CN_NAVIGABLE ||
|
||||||
(sect.sct_own && sect.sct_own != sp->shp_own &&
|
(sect.sct_own && sect.sct_own != sp->shp_own &&
|
||||||
|
sect.sct_type != SCT_BSPAN &&
|
||||||
getrel(getnatp(sect.sct_own), sp->shp_own) < FRIENDLY)) {
|
getrel(getnatp(sect.sct_own), sp->shp_own) < FRIENDLY)) {
|
||||||
wu(0, sp->shp_own, "%s %s,\nbut could not retreat to %s!\n",
|
wu(0, sp->shp_own, "%s %s,\nbut could not retreat to %s!\n",
|
||||||
prship(sp), conditions[findcondition(code)].desc[orig],
|
prship(sp), conditions[findcondition(code)].desc[orig],
|
||||||
|
|
|
@ -753,6 +753,7 @@ shp_nav_one_sector(struct emp_qelem *list, int dir, natid actor,
|
||||||
navigate = shp_check_nav(§, &mlp->unit.ship);
|
navigate = shp_check_nav(§, &mlp->unit.ship);
|
||||||
if (navigate != CN_NAVIGABLE ||
|
if (navigate != CN_NAVIGABLE ||
|
||||||
(sect.sct_own && actor != sect.sct_own &&
|
(sect.sct_own && actor != sect.sct_own &&
|
||||||
|
sect.sct_type != SCT_BSPAN &&
|
||||||
getrel(getnatp(sect.sct_own), actor) < FRIENDLY)) {
|
getrel(getnatp(sect.sct_own), actor) < FRIENDLY)) {
|
||||||
if (dchr[sect.sct_type].d_nav == NAV_CANAL &&
|
if (dchr[sect.sct_type].d_nav == NAV_CANAL &&
|
||||||
!(((struct mchrstr *)mlp->chrp)->m_flags & M_CANAL) &&
|
!(((struct mchrstr *)mlp->chrp)->m_flags & M_CANAL) &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue