Resolved #596 - unit retains focus when moved to tile with another unit already in it, if it has movement points left

This commit is contained in:
Yair Morgenstern
2019-05-19 22:31:16 +03:00
parent 00ef4d171c
commit 5c4be33418

View File

@ -142,6 +142,9 @@ class TileMapHolder(internal val worldScreen: WorldScreen, internal val tileMap:
Sounds.play("whoosh")
if (dto.unit.currentTile != dto.tileInfo)
dto.unit.action = "moveTo " + dto.tileInfo.position.x.toInt() + "," + dto.tileInfo.position.y.toInt()
if(dto.unit.currentMovement>0){
worldScreen.bottomBar.unitTable.selectedUnit=dto.unit
}
} catch (e: Exception) {
}
}