mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 11:28:03 +07:00
Fixed bug where everyone would pay upkeep costs for all tiles, instead of just their own tiles
This commit is contained in:
parent
2be6a5c15c
commit
13e1d06c8b
@ -108,7 +108,7 @@ class CivilizationInfo {
|
||||
|
||||
private fun getTransportationUpkeep(): Int {
|
||||
var transportationUpkeep = 0
|
||||
for (it in gameInfo.tileMap.values.filterNot { it.isCityCenter() }) {
|
||||
for (it in gameInfo.tileMap.values.filter { it.getOwner()==this }.filterNot { it.isCityCenter() }) {
|
||||
when(it.roadStatus) {
|
||||
RoadStatus.Road -> transportationUpkeep += 1
|
||||
RoadStatus.Railroad -> transportationUpkeep += 2
|
||||
|
Loading…
Reference in New Issue
Block a user