mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 11:28:03 +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:
parent
7ae54aceb1
commit
6c990b67e2
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user