(retreat_ship1): Fix sector ownership test. Before, retreating ships
could enter sectors owned by whoever caused the retreat, but not own sectors. Reported by Ray Hyatt. Closes #1346750.
This commit is contained in:
parent
d182f3dc1d
commit
b8b243339f
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ retreat_ship1(struct shpstr *sp, char code, int orig)
|
|||
|
||||
getsect(newx, newy, §);
|
||||
if (shp_check_nav(§, sp) != CN_NAVIGABLE ||
|
||||
(sect.sct_own && !player->owner &&
|
||||
(sect.sct_own && sect.sct_own != sp->shp_own &&
|
||||
getrel(getnatp(sect.sct_own), sp->shp_own) < FRIENDLY)) {
|
||||
wu(0, sp->shp_own, "%s %s,\nbut could not retreat to %s!\n",
|
||||
prship(sp), conditions[findcondition(code)].desc[orig],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue