mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-03 12:54:43 +07:00
Fix tests
This commit is contained in:
parent
2df8a405c7
commit
134ac57588
@ -438,7 +438,6 @@ class UnitMovement(val unit: MapUnit) {
|
||||
var previousTile = unit.getTile()
|
||||
var passingMovementSpent = 0f // Movement points spent since last tile we could end our turn on
|
||||
|
||||
unit.removeFromTile()
|
||||
|
||||
for (tile in pathToLastReachableTile) {
|
||||
if (!unit.movement.canPassThrough(tile)) {
|
||||
@ -460,6 +459,7 @@ class UnitMovement(val unit: MapUnit) {
|
||||
if (unit.movement.canMoveTo(tile, assumeCanPassThrough = true)) {
|
||||
lastReachedEnterableTile = tile
|
||||
unit.useMovementPoints(passingMovementSpent)
|
||||
unit.removeFromTile()
|
||||
unit.putInTile(tile) // Required for ruins,
|
||||
|
||||
if (escortUnit != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user