mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-22 13:49:54 +07:00
Not that the destination is not always reached, changed headTowards to return the actual tile the unit reached
This commit is contained in:
@ -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! */
|
||||
|
Reference in New Issue
Block a user