mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04: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 previousTile = unit.getTile()
|
||||||
var passingMovementSpent = 0f // Movement points spent since last tile we could end our turn on
|
var passingMovementSpent = 0f // Movement points spent since last tile we could end our turn on
|
||||||
|
|
||||||
unit.removeFromTile()
|
|
||||||
|
|
||||||
for (tile in pathToLastReachableTile) {
|
for (tile in pathToLastReachableTile) {
|
||||||
if (!unit.movement.canPassThrough(tile)) {
|
if (!unit.movement.canPassThrough(tile)) {
|
||||||
@ -460,6 +459,7 @@ class UnitMovement(val unit: MapUnit) {
|
|||||||
if (unit.movement.canMoveTo(tile, assumeCanPassThrough = true)) {
|
if (unit.movement.canMoveTo(tile, assumeCanPassThrough = true)) {
|
||||||
lastReachedEnterableTile = tile
|
lastReachedEnterableTile = tile
|
||||||
unit.useMovementPoints(passingMovementSpent)
|
unit.useMovementPoints(passingMovementSpent)
|
||||||
|
unit.removeFromTile()
|
||||||
unit.putInTile(tile) // Required for ruins,
|
unit.putInTile(tile) // Required for ruins,
|
||||||
|
|
||||||
if (escortUnit != null) {
|
if (escortUnit != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user