From 5797800d4d96db78f9da4dc52bd1dc76ee6fc41c Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 22 Sep 2021 00:00:02 +0300 Subject: [PATCH 13/13] Allow moving CoastStrict unit to ocean city, or city in 1x1 island Reported by lexxie9952 See osdn #42600 Signed-off-by: Marko Lindqvist --- common/movement.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/movement.c b/common/movement.c index cecba83375..de2bad5187 100644 --- a/common/movement.c +++ b/common/movement.c @@ -650,7 +650,8 @@ unit_move_to_tile_test(const struct unit *punit, } /* 10) */ - if (utype_has_flag(punittype, UTYF_COAST_STRICT) && !is_safe_ocean(dst_tile)) { + if (utype_has_flag(punittype, UTYF_COAST_STRICT) + && !pcity && !is_safe_ocean(dst_tile)) { return MR_TRIREME; } -- 2.33.0