From 852c06ae070572ab7861af5526459eef46f9d11b Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Thu, 28 Jan 2021 14:50:24 +0200 Subject: [PATCH] Not that the destination is not always reached, changed headTowards to return the actual tile the unit reached --- 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 c5454bc68d..791d5d276e 100644 --- a/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt +++ b/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt @@ -251,7 +251,7 @@ class UnitMovementAlgorithms(val unit:MapUnit) { fun headTowards(destination: TileInfo): TileInfo { val destinationTileThisTurn = getTileToMoveToThisTurn(destination) moveToTile(destinationTileThisTurn) - return destinationTileThisTurn + return unit.currentTile } /** This is performance-heavy - use as last resort, only after checking everything else! */