From feb9b19d11918390f301322c7e1292eb6fb1cd83 Mon Sep 17 00:00:00 2001 From: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Date: Sat, 22 Jan 2022 17:32:55 +0100 Subject: [PATCH] Removed a probably unnecessary check in unit.mayPassThrough() (#6008) --- core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt b/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt index f379519e60..09cd5cefcd 100644 --- a/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt +++ b/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt @@ -599,7 +599,7 @@ class UnitMovementAlgorithms(val unit:MapUnit) { if (tile.isLand && unit.baseUnit.isWaterUnit() // Check that the tile is not a coastal city's center - && !(tile.isCityCenter() && tile.isCoastalTile())) + && !tile.isCityCenter()) return false