mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 07:17:50 +07:00
spectators can no longer move and attack with units after selecting them (#7062)
* less power for spectators * better formatting
This commit is contained in:
@ -216,6 +216,9 @@ class WorldMapHolder(
|
||||
}
|
||||
|
||||
private fun onTileRightClicked(unit: MapUnit, tile: TileInfo) {
|
||||
if (UncivGame.Current.gameInfo.currentPlayerCiv.isSpectator()) {
|
||||
return
|
||||
}
|
||||
removeUnitActionOverlay()
|
||||
selectedTile = tile
|
||||
unitMovementPaths.clear()
|
||||
|
Reference in New Issue
Block a user