mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 04:43:05 -04:00
Resolve #6551 - Calculate 'tiles can reach this turn' correctly with combinations of roads + railroads
This commit is contained in:
parent
d752b0b5c9
commit
ec50729767
@ -167,7 +167,7 @@ class UnitMovementAlgorithms(val unit: MapUnit) {
|
||||
}
|
||||
|
||||
if (!distanceToTiles.containsKey(neighbor) || distanceToTiles[neighbor]!!.totalDistance > totalDistanceToTile) { // this is the new best path
|
||||
if (totalDistanceToTile < unitMovement) // We can still keep moving from here!
|
||||
if (totalDistanceToTile < unitMovement- Constants.minimumMovementEpsilon) // We can still keep moving from here!
|
||||
updatedTiles += neighbor
|
||||
else
|
||||
totalDistanceToTile = unitMovement
|
||||
|
Loading…
x
Reference in New Issue
Block a user