navigate: Don't disclose whether unfriendly canal is navigable
When you try to navigate a ship without canal capability into an unfriendly canal, you get "can't go" when it's below 2%, else "too large to fit". Always report "can't go" for unfriendly sectors. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
4bc51f75f8
commit
b1b072448d
3 changed files with 4 additions and 3 deletions
|
@ -793,7 +793,9 @@ shp_nav_one_sector(struct emp_qelem *list, int dir, natid actor)
|
|||
if (stuck != SHP_STUCK_NOT ||
|
||||
(sect.sct_own
|
||||
&& relations_with(sect.sct_own, actor) < FRIENDLY)) {
|
||||
if (stuck == SHP_STUCK_CANAL)
|
||||
if (stuck == SHP_STUCK_CANAL &&
|
||||
(!sect.sct_own
|
||||
|| relations_with(sect.sct_own, actor) >= FRIENDLY))
|
||||
sprintf(dp,
|
||||
"is too large to fit into the canal system at %s",
|
||||
xyas(newx, newy, actor));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue