mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 15:27: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) {
|
private fun onTileRightClicked(unit: MapUnit, tile: TileInfo) {
|
||||||
|
if (UncivGame.Current.gameInfo.currentPlayerCiv.isSpectator()) {
|
||||||
|
return
|
||||||
|
}
|
||||||
removeUnitActionOverlay()
|
removeUnitActionOverlay()
|
||||||
selectedTile = tile
|
selectedTile = tile
|
||||||
unitMovementPaths.clear()
|
unitMovementPaths.clear()
|
||||||
|
Reference in New Issue
Block a user