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