Fix trade ships to pay off in own harbor
Broken in commit 3318e4e4
, v4.3.17.
This commit is contained in:
parent
439f111f98
commit
16c68eb403
1 changed files with 2 additions and 1 deletions
|
@ -165,7 +165,8 @@ scuttle_tradeship(struct shpstr *sp, int interactive)
|
||||||
mp = &mchr[(int)sp->shp_type];
|
mp = &mchr[(int)sp->shp_type];
|
||||||
getsect(sp->shp_x, sp->shp_y, §);
|
getsect(sp->shp_x, sp->shp_y, §);
|
||||||
if (sect.sct_own && sect.sct_type == SCT_HARBR && sect.sct_effic >= 2
|
if (sect.sct_own && sect.sct_type == SCT_HARBR && sect.sct_effic >= 2
|
||||||
&& getrel(getnatp(sect.sct_own), sp->shp_own) >= FRIENDLY) {
|
&& (sect.sct_own == sp->shp_own
|
||||||
|
|| getrel(getnatp(sect.sct_own), sp->shp_own) >= FRIENDLY)) {
|
||||||
dist = mapdist(sp->shp_x, sp->shp_y,
|
dist = mapdist(sp->shp_x, sp->shp_y,
|
||||||
sp->shp_orig_x, sp->shp_orig_y);
|
sp->shp_orig_x, sp->shp_orig_y);
|
||||||
/* Don't disclose distance to to pirates */
|
/* Don't disclose distance to to pirates */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue