mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 14:24:43 -04:00
debug: More details for destination tile when failing to move to a tile
This commit is contained in:
parent
26bae52508
commit
ebfdbb8c4a
@ -654,7 +654,7 @@ class MapUnit : IsPartOfGameInfoSerialization {
|
||||
fun putInTile(tile: Tile) {
|
||||
when {
|
||||
!movement.canMoveTo(tile) ->
|
||||
throw Exception("Unit $name at $currentTile can't be put in tile ${tile.position}!")
|
||||
throw Exception("Unit $name of ${civ.civName} at $currentTile can't be put in tile $tile!")
|
||||
baseUnit.movesLikeAirUnits() -> tile.airUnits.add(this)
|
||||
isCivilian() -> tile.civilianUnit = this
|
||||
else -> tile.militaryUnit = this
|
||||
|
Loading…
x
Reference in New Issue
Block a user